Py3: Fix corresponding base.Integer test in test_language_base

This commit is contained in:
Shadab Zafar 2016-06-05 23:21:50 +05:30 committed by Maximilian Hils
parent daba944151
commit 5a2932adc1
2 changed files with 2 additions and 2 deletions

View File

@ -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())

View File

@ -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