()
| 86 | @pytest.mark.skipif(not has_lz4() or platform.python_implementation() == 'PyPy', |
| 87 | reason="python-lz4 crashes on old versions of pypy") |
| 88 | def test_lz4(): |
| 89 | for i in range(1000): |
| 90 | b1 = random_string(100).encode('utf-8') |
| 91 | b2 = lz4_decode(lz4_encode(b1)) |
| 92 | assert len(b1) == len(b2) |
| 93 | assert b1 == b2 |
| 94 | |
| 95 | |
| 96 | @pytest.mark.skipif(not has_lz4() or platform.python_implementation() == 'PyPy', |
nothing calls this directly
no test coverage detected
searching dependent graphs…