aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pathod/language/base.py2
-rw-r--r--test/pathod/test_language_base.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pathod/language/base.py b/pathod/language/base.py
index c75005be..bc389792 100644
--- a/pathod/language/base.py
+++ b/pathod/language/base.py
@@ -401,7 +401,7 @@ class Integer(_Component):
return e.setParseAction(lambda x: cls(*x))
def values(self, settings):
- return self.value
+ return [self.value]
def spec(self):
return "%s%s" % (self.preamble, self.value.decode())
diff --git a/test/pathod/test_language_base.py b/test/pathod/test_language_base.py
index 075dc2b8..bb1e864b 100644
--- a/test/pathod/test_language_base.py
+++ b/test/pathod/test_language_base.py
@@ -311,7 +311,7 @@ def test_options_or_value():
def test_integer():
e = base.Integer.expr()
v = e.parseString("200")[0]
- assert v.string() == "200"
+ assert v.string() == b"200"
assert v.spec() == "200"
assert v.freeze({}).value == v.value