1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Remove old lz4 test
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/881986
Forwarded: not-needed
Last-Update: 2017-11-18
--- python-kafka-1.3.3.orig/test/test_codec.py
+++ python-kafka-1.3.3/test/test_codec.py
@@ -95,16 +95,6 @@ def test_lz4():
@pytest.mark.skipif(not has_lz4() or platform.python_implementation() == 'PyPy',
reason="python-lz4 crashes on old versions of pypy")
-def test_lz4_old():
- for i in xrange(1000):
- b1 = random_string(100).encode('utf-8')
- b2 = lz4_decode_old_kafka(lz4_encode_old_kafka(b1))
- assert len(b1) == len(b2)
- assert b1 == b2
-
-
-@pytest.mark.skipif(not has_lz4() or platform.python_implementation() == 'PyPy',
- reason="python-lz4 crashes on old versions of pypy")
def test_lz4_incremental():
for i in xrange(1000):
# lz4 max single block size is 4MB
|