Skip to content

Commit f4b8661

Browse files
mzeitlin11JulianWgs
authored andcommitted
TST: make flaky zip check less strict (pandas-dev#40837)
1 parent 9090117 commit f4b8661

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/test_gcs.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,13 @@ def test_to_read_gcs(gcs_buffer, format):
9999

100100
def assert_equal_zip_safe(result: bytes, expected: bytes):
101101
"""
102-
We would like to assert these are equal, but the 11th byte is a last-modified
103-
timestamp, which in some builds is off-by-one, so we check around that.
102+
We would like to assert these are equal, but the 10th and 11th bytes are a
103+
last-modified timestamp, which in some builds is off-by-one, so we check around
104+
that.
104105
105106
See https://en.wikipedia.org/wiki/ZIP_(file_format)#File_headers
106107
"""
107-
assert result[:10] == expected[:10]
108+
assert result[:9] == expected[:9]
108109
assert result[11:] == expected[11:]
109110

110111

0 commit comments

Comments
 (0)