Kaydet (Commit) 85674936 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Monotonic, not monotonous

üst e58bffb8
......@@ -1122,7 +1122,7 @@ class AbstractPickleTests(unittest.TestCase):
# Test compacity of int representation (see issue #12744)
for proto in protocols:
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)
if proto >= 2:
self.assertLessEqual(sizes[-1], 14)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment