Skip to content

Commit b45da01

Browse files
falklindnerclaude
andcommitted
Move the LZO source type test after the benchmark
#143 adds a test at the same place in test_lzo.py. With this one after the benchmark test, the two PRs merge cleanly in either order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJvjcGbjsG74UunzfT5zNE
1 parent d910273 commit b45da01

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎tests/compression/test_lzo.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,17 @@ def test_lzo_decompress(lzo: ModuleType, data: str, header: bool, buflen: int, d
202202
assert hashlib.sha256(lzo.decompress(bytes.fromhex(data), header, buflen)).hexdigest() == digest
203203

204204

205-
@pytest.mark.parametrize("source_type", [bytes, bytearray, memoryview])
206-
@pytest.mark.parametrize(*PARAMS)
207-
def test_lzo_decompress_source_types(
208-
lzo: ModuleType, data: str, header: bool, buflen: int, digest: str, source_type: type
209-
) -> None:
210-
assert hashlib.sha256(lzo.decompress(source_type(bytes.fromhex(data)), header, buflen)).hexdigest() == digest
211-
212-
213205
@pytest.mark.benchmark
214206
@pytest.mark.parametrize(*PARAMS)
215207
def test_benchmark_lzo_decompress(
216208
lzo: ModuleType, data: str, header: bool, buflen: int, digest: str, benchmark: BenchmarkFixture
217209
) -> None:
218210
assert hashlib.sha256(benchmark(lzo.decompress, bytes.fromhex(data), header, buflen)).hexdigest() == digest
211+
212+
213+
@pytest.mark.parametrize("source_type", [bytes, bytearray, memoryview])
214+
@pytest.mark.parametrize(*PARAMS)
215+
def test_lzo_decompress_source_types(
216+
lzo: ModuleType, data: str, header: bool, buflen: int, digest: str, source_type: type
217+
) -> None:
218+
assert hashlib.sha256(lzo.decompress(source_type(bytes.fromhex(data)), header, buflen)).hexdigest() == digest

0 commit comments

Comments
 (0)