There was an error while loading. Please reload this page.
1 parent b3fc6f5 commit 8f370c8Copy full SHA for 8f370c8
1 file changed
Lib/test/test_marshal.py
@@ -118,9 +118,10 @@ def test_bytes(self):
118
119
@support.cpython_only
120
def test_bytes_singleton(self):
121
- for sample in [b"", b"x"]:
122
- new = marshal.loads(marshal.dumps(sample))
123
- self.assertIs(new, sample)
+ for version in range(marshal.version + 1):
+ for sample in [b"", b"x"]:
+ new = marshal.loads(marshal.dumps(sample, version))
124
+ self.assertIs(new, sample)
125
126
127
class ExceptionTestCase(unittest.TestCase):
0 commit comments