Skip to content

Commit

Permalink
Don't require absolute offsets in zip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Sep 23, 2024
1 parent 76ca4a6 commit 3c42b64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fsspec/implementations/tests/test_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,16 @@ def _assert_all_except_context_dependent_variables(result, expected_result):
result_without_date_time.pop("_raw_time")
result_without_date_time.pop("external_attr")
result_without_date_time.pop("create_system")
result_without_date_time.pop("_end_offset", None)
result_without_date_time.pop("header_offset", None)

expected_result_without_date_time = expected_result[path].copy()
expected_result_without_date_time.pop("date_time")
expected_result_without_date_time.pop("_raw_time")
expected_result_without_date_time.pop("external_attr")
expected_result_without_date_time.pop("create_system")
expected_result_without_date_time.pop("_end_offset", None)
expected_result_without_date_time.pop("header_offset", None)
assert result_without_date_time == expected_result_without_date_time


Expand Down

0 comments on commit 3c42b64

Please sign in to comment.