diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-05 23:21:50 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-06 11:52:45 -0700 |
commit | 5a2932adc11b9049e5609ae564cdee2482ef800c (patch) | |
tree | ad14ca56136c077aba1769e328a09c3f23976d84 | |
parent | daba944151097da7fd1d3f9f2af1bd931e013003 (diff) | |
download | mitmproxy-5a2932adc11b9049e5609ae564cdee2482ef800c.tar.gz mitmproxy-5a2932adc11b9049e5609ae564cdee2482ef800c.tar.bz2 mitmproxy-5a2932adc11b9049e5609ae564cdee2482ef800c.zip |
Py3: Fix corresponding base.Integer test in test_language_base
-rw-r--r-- | pathod/language/base.py | 2 | ||||
-rw-r--r-- | 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 |