]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-149425: Increase `test_write_without_source_date_epoch` assertion delta (#149426)
authorEduardo Villalpando Mello <eduardo.villalpando.mello@gmail.com>
Tue, 5 May 2026 21:22:04 +0000 (14:22 -0700)
committerGitHub <noreply@github.com>
Tue, 5 May 2026 21:22:04 +0000 (14:22 -0700)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
Lib/test/test_zipfile/test_core.py
Misc/NEWS.d/next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst [new file with mode: 0644]

index 6887a5e5cc4d18bcadfb23f596008850addf6865..0d407371f40a0f785558a829c1f1805ac5b6e3ed 100644 (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."""
diff --git a/Misc/NEWS.d/next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst b/Misc/NEWS.d/next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst
new file mode 100644 (file)
index 0000000..680b1fd
--- /dev/null
@@ -0,0 +1 @@
+Increase time delta in ``test.test_zipfile.test_core.OtherTests.test_write_without_source_date_epoch``