mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
Py3: Fix corresponding base.Integer test in test_language_base
This commit is contained in:
parent
daba944151
commit
5a2932adc1
@ -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())
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user