From f2ae56862a59273da9ed9bd8fa52891121a9f651 Mon Sep 17 00:00:00 2001 From: ptweezy Date: Tue, 27 Oct 2026 15:43:13 -0400 Subject: [PATCH] Check the flag byte for FNAME in test_compress_infile_out_file_no_name The test checked byte 4, the first byte of MTIME. The flags are in byte 3. --- tests/test_igzip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_igzip.py b/tests/test_igzip.py index b31adb85..1cd9517e 100644 --- a/tests/test_igzip.py +++ b/tests/test_igzip.py @@ -387,7 +387,7 @@ def test_compress_infile_out_file_no_name(monkeypatch, tmp_path, capsysbinary): assert gzip.decompress(output) == DATA assert err == b'' assert out == b'' - assert output[4] & gzip.FNAME == 0 # No filename set. + assert output[3] & gzip.FNAME == 0 # No filename set. assert output[4:8] == b"\x00\x00\x00\x00" # No timestamp set.