Skip to content

Commit 17975f9

Browse files
edvilmeblurb-it[bot]brettcannon
authored
gh-149425: Increase test_write_without_source_date_epoch assertion delta (#149426)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>
1 parent 4fa5c04 commit 17975f9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_zipfile/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ def test_write_without_source_date_epoch(self):
19031903
zip_info = zf.getinfo("test_no_source_date_epoch.txt")
19041904
current_time = time.localtime()[:6]
19051905
for z_time, c_time in zip(zip_info.date_time, current_time):
1906-
self.assertAlmostEqual(z_time, c_time, delta=1)
1906+
self.assertAlmostEqual(z_time, c_time, delta=2)
19071907

19081908
def test_close(self):
19091909
"""Check that the zipfile is closed after the 'with' block."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Increase time delta in ``test.test_zipfile.test_core.OtherTests.test_write_without_source_date_epoch``

0 commit comments

Comments
 (0)