File: remove-old-lz4-test.patch

package info (click to toggle)
python-kafka 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,236 kB
  • sloc: python: 20,151; makefile: 215; sh: 62
file content (25 lines) | stat: -rw-r--r-- 926 bytes parent folder | download
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