Skip to content

Commit 2697cea

Browse files
committed
Enable all flush tests
1 parent b5a472f commit 2697cea

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/test_zlib_compliance.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ def test_clear_unconsumed_tail(self):
470470
ddata += dco.decompress(dco.unconsumed_tail)
471471
self.assertEqual(dco.unconsumed_tail, b"")
472472

473-
@pytest.mark.xfail(reason="Flush is not implemented in a compatible way.")
474473
def test_flushes(self):
475474
# Test flush() with the various options, using all the
476475
# different levels in order to provide more variations.
@@ -563,7 +562,6 @@ def test_dictionary(self):
563562
dco = isal_zlib.decompressobj()
564563
self.assertRaises(isal_zlib.error, dco.decompress, cd)
565564

566-
@pytest.mark.xfail(reason="Flush is not implemented in a compatible way.")
567565
def test_dictionary_streaming(self):
568566
# This simulates the reuse of a compressor object for compressing
569567
# several separate data streams.
@@ -649,7 +647,6 @@ def test_decompress_raw_with_dictionary(self):
649647
uncomp = dco.decompress(comp) + dco.flush()
650648
self.assertEqual(zdict, uncomp)
651649

652-
@pytest.mark.xfail(reason="Flush is not implemented in a compatible way.")
653650
def test_flush_with_freed_input(self):
654651
# Issue #16411: decompressor accesses input to last decompress() call
655652
# in flush(), even if this object has been freed in the meanwhile.
@@ -662,7 +659,6 @@ def test_flush_with_freed_input(self):
662659
data = isal_zlib.compress(input2) # noqa: F841
663660
self.assertEqual(dco.flush(), input1[1:])
664661

665-
@pytest.mark.xfail(reason="Flush is not implemented in a compatible way.")
666662
@bigmemtest(size=_4G, memuse=1)
667663
def test_flush_large_length(self, size):
668664
# Test flush(length) parameter greater than internal limit UINT_MAX
@@ -672,7 +668,6 @@ def test_flush_large_length(self, size):
672668
dco.decompress(data, 1)
673669
self.assertEqual(dco.flush(size), input[1:])
674670

675-
@pytest.mark.xfail(reason="Flush is not implemented in a compatible way.")
676671
def test_flush_custom_length(self):
677672
input = HAMLET_SCENE * 10
678673
data = isal_zlib.compress(input, 1)

0 commit comments

Comments
 (0)