Monotonic, not monotonous

This commit is contained in:
Antoine Pitrou 2011-08-14 01:51:52 +02:00
parent e58bffb8ae
commit 85674936c7
1 changed files with 1 additions and 1 deletions

View File

@ -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)