Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Lib/test/test_bz2.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ def testCompress4G(self, size):
data = None

def testPickle(self):
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
# Why?
for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
with self.assertRaises(TypeError):
pickle.dumps(BZ2Compressor(), proto)

Expand Down Expand Up @@ -724,7 +725,8 @@ def testDecompress4G(self, size):
decompressed = None

def testPickle(self):
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
# Why?
for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
with self.assertRaises(TypeError):
pickle.dumps(BZ2Decompressor(), proto)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert :mod:`_bz2` to use :c:func:`PyType_FromSpec`.
Loading