Extend the test to lower pickle protocols.

This commit is contained in:
Serhiy Storchaka 2016-09-22 11:42:38 +03:00
commit e3d504090c
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,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)