Bug report
Bug description:
I had test.test_zipfile.test_core.OtherTests.test_write_without_source_date_epoch fail with difference of 2 on the WASI buildbot.
|
def test_write_without_source_date_epoch(self): |
|
with os_helper.EnvironmentVarGuard() as env: |
|
del env['SOURCE_DATE_EPOCH'] |
|
|
|
with zipfile.ZipFile(TESTFN, "w") as zf: |
|
zf.writestr("test_no_source_date_epoch.txt", "Testing without SOURCE_DATE_EPOCH") |
|
|
|
with zipfile.ZipFile(TESTFN, "r") as zf: |
|
zip_info = zf.getinfo("test_no_source_date_epoch.txt") |
|
current_time = time.localtime()[:6] |
|
for z_time, c_time in zip(zip_info.date_time, current_time): |
|
self.assertAlmostEqual(z_time, c_time, delta=1) |
The test probably just needs to allow a delta of 2.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
Bug report
Bug description:
I had test.test_zipfile.test_core.OtherTests.test_write_without_source_date_epoch fail with difference of 2 on the WASI buildbot.
cpython/Lib/test/test_zipfile/test_core.py
Lines 1895 to 1906 in 4fa5c04
The test probably just needs to allow a delta of 2.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
test_write_without_source_date_epochassertion delta #149426test_write_without_source_date_epochassertion delta (GH-149426) #149433