From 5a2932adc11b9049e5609ae564cdee2482ef800c Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Sun, 5 Jun 2016 23:21:50 +0530 Subject: Py3: Fix corresponding base.Integer test in test_language_base --- pathod/language/base.py | 2 +- test/pathod/test_language_base.py | 2 +- 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 -- cgit v1.2.3