-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
While working on #100817 I've noticed that slice
is only tested with 3 pickle
protocols. See
cpython/Lib/test/test_slice.py
Lines 237 to 243 in 8dd2766
def test_pickle(self): | |
s = slice(10, 20, 3) | |
for protocol in (0,1,2): | |
t = loads(dumps(s, protocol)) | |
self.assertEqual(s, t) | |
self.assertEqual(s.indices(15), t.indices(15)) | |
self.assertNotEqual(id(s), id(t)) |
Linked PRs
mdboom
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error