mirror of
https://github.com/python/cpython.git
synced 2025-11-10 14:31:24 +00:00
Extend the test to lower pickle protocols.
This commit is contained in:
parent
16ea19fc66
commit
92bb90a9ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1054,7 +1054,7 @@ class TestTotalOrdering(unittest.TestCase):
|
||||||
a <= b
|
a <= b
|
||||||
|
|
||||||
def test_pickle(self):
|
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__':
|
for name in '__lt__', '__gt__', '__le__', '__ge__':
|
||||||
with self.subTest(method=name, proto=proto):
|
with self.subTest(method=name, proto=proto):
|
||||||
method = getattr(Orderable_LT, name)
|
method = getattr(Orderable_LT, name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue