8000 bpo-40077: Convert _bz2 module to use PyType_FromSpec · python/cpython@a45739f · GitHub
[go: up one dir, main page]

Skip to content

Commit a45739f

Browse files
committed
bpo-40077: Convert _bz2 module to use PyType_FromSpec
1 parent 2c2a4f3 commit a45739f

File tree

4 files changed

+181
-193
lines changed

4 files changed

+181
-193
lines changed

Lib/test/test_bz2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,8 @@ def testCompress4G(self, size):
666666
data = None
667667

668668
def testPickle(self):
669-
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
669+
# Why?
670+
for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
670671
with self.assertRaises(TypeError):
671672
pickle.dumps(BZ2Compressor(), proto)
672673

@@ -724,7 +725,8 @@ def testDecompress4G(self, size):
724725
decompressed = None
725726

726727
def testPickle(self):
727-
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
728+
# Why?
729+
for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
728730
with self.assertRaises(TypeError):
729731
pickle.dumps(BZ2Decompressor(), proto)
730732

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Convert :mod:`_bz2` to use :c:func:`PyType_FromSpec`.

0 commit comments

Comments
 (0)
0