]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Extend the test to lower pickle protocols.
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 22 Sep 2016 08:39:25 +0000 (11:39 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 22 Sep 2016 08:39:25 +0000 (11:39 +0300)
Lib/test/test_functools.py

index ab51a3534d53aa9d47538ea3b537cf2afc1fed7b..50766449524ef3c50ca53bde2b52b9b0d2098e5c 100644 (file)
@@ -1054,7 +1054,7 @@ class TestTotalOrdering(unittest.TestCase):
                 a <= b
 
     def test_pickle(self):
-        for proto in range(4, pickle.HIGHEST_PROTOCOL + 1):
+        for proto in range(pickle.HIGHEST_PROTOCOL + 1):
             for name in '__lt__', '__gt__', '__le__', '__ge__':
                 with self.subTest(method=name, proto=proto):
                     method = getattr(Orderable_LT, name)