mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-04 19:57:16 +00:00
fix #5584
This commit is contained in:
parent
b78869b584
commit
780adbaf9b
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,8 @@ class Test_Format(unittest.TestCase):
|
|||
self.assertEqual((v, b""), tnetstring.pop(tnetstring.dumps(v)))
|
||||
|
||||
def test_roundtrip_big_integer(self):
|
||||
i1 = math.factorial(30000)
|
||||
# Recent Python versions do not like ints above 4300 digits, https://github.com/python/cpython/issues/95778
|
||||
i1 = math.factorial(1557)
|
||||
s = tnetstring.dumps(i1)
|
||||
i2 = tnetstring.loads(s)
|
||||
self.assertEqual(i1, i2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue