mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Monotonic, not monotonous
This commit is contained in:
parent
e58bffb8ae
commit
85674936c7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue