Skip to content
Snippets Groups Projects
Commit 5b858592 authored by Thomas Goirand's avatar Thomas Goirand
Browse files

Add remove-old-lz4-test.patch (Closes: #881986).

parent 3db408bd
No related branches found
No related tags found
No related merge requests found
python-kafka (1.3.3-3) unstable; urgency=medium
* Add remove-old-lz4-test.patch (Closes: #881986).
-- Thomas Goirand <zigo@debian.org> Fri, 17 Nov 2017 12:11:12 +0000
python-kafka (1.3.3-2) unstable; urgency=medium
* Uploading to unstable (Closes: #834033).
......
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
......@@ -2,3 +2,4 @@ do-not-use-sphinxcontrib.napoleon-theme.patch
no-intersphinx.patch
do-not-test-lz4-compression.patch
remove-multiple-privacy-breaches.patch
remove-old-lz4-test.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment