Monotonic, not monotonous
This commit is contained in:
parent
e58bffb8ae
commit
85674936c7
|
@ -1122,7 +1122,7 @@ class AbstractPickleTests(unittest.TestCase):
|
||||||
# Test compacity of int representation (see issue #12744)
|
# Test compacity of int representation (see issue #12744)
|
||||||
for proto in protocols:
|
for proto in protocols:
|
||||||
sizes = [len(self.dumps(2**n, proto)) for n in range(70)]
|
sizes = [len(self.dumps(2**n, proto)) for n in range(70)]
|
||||||
# the size function is monotonous
|
# the size function is monotonic
|
||||||
self.assertEqual(sorted(sizes), sizes)
|
self.assertEqual(sorted(sizes), sizes)
|
||||||
if proto >= 2:
|
if proto >= 2:
|
||||||
self.assertLessEqual(sizes[-1], 14)
|
self.assertLessEqual(sizes[-1], 14)
|
||||||
|
|
Loading…
Reference in New Issue