We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c02a8 commit 9d412a8Copy full SHA for 9d412a8
tests/test_gzip_compliance.py
@@ -646,6 +646,16 @@ def test_prepend_error(self):
646
with igzip.open(self.filename, "rb") as f:
647
f._buffer.raw._fp.prepend()
648
649
+ def test_public_consts(self):
650
+ # Confirm that all of the gzip module public consts are
651
+ # also accessible via igzip, for drop-in compatibility.
652
+ self.assertEqual(gzip.FCOMMENT, igzip.FCOMMENT)
653
+ self.assertEqual(gzip.FEXTRA, igzip.FEXTRA)
654
+ self.assertEqual(gzip.FHCRC, igzip.FHCRC)
655
+ self.assertEqual(gzip.FNAME, igzip.FNAME)
656
+ self.assertEqual(gzip.FTEXT, igzip.FTEXT)
657
+ self.assertEqual(gzip.READ, igzip.READ)
658
+ self.assertEqual(gzip.WRITE, igzip.WRITE)
659
660
class TestOpen(BaseTest):
661
def test_binary_modes(self):
0 commit comments