[3.14] gh-149425: Increase test_write_without_source_date_epoch assertion delta (GH-149426) (#149433)

gh-149425: Increase `test_write_without_source_date_epoch` assertion delta (GH-149426)
(cherry picked from commit 17975f92ed)

Co-authored-by: Eduardo Villalpando Mello <eduardo.villalpando.mello@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Miss Islington (bot)
2026-05-05 23:48:22 +02:00
committed by GitHub
parent dd41f93320
commit 368aafb3fb
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1903,7 +1903,7 @@ class OtherTests(unittest.TestCase):
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)
self.assertAlmostEqual(z_time, c_time, delta=2)
def test_close(self):
"""Check that the zipfile is closed after the 'with' block."""
@@ -0,0 +1 @@
Increase time delta in ``test.test_zipfile.test_core.OtherTests.test_write_without_source_date_epoch``