https://github.com/python/cpython/commit/368aafb3fb5fa87acab80ee2166a66ee91ce5de2
commit: 368aafb3fb5fa87acab80ee2166a66ee91ce5de2
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: brettcannon <[email protected]>
date: 2026-05-05T21:48:22Z
summary:

[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 17975f92edd2a6a84549e19f683f78a96992ec80)

Co-authored-by: Eduardo Villalpando Mello <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brett Cannon <[email protected]>

files:
A Misc/NEWS.d/next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst
M Lib/test/test_zipfile/test_core.py

diff --git a/Lib/test/test_zipfile/test_core.py 
b/Lib/test/test_zipfile/test_core.py
index 6887a5e5cc4d18..0d407371f40a0f 100644
--- a/Lib/test/test_zipfile/test_core.py
+++ b/Lib/test/test_zipfile/test_core.py
@@ -1903,7 +1903,7 @@ def test_write_without_source_date_epoch(self):
                 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
index 00000000000000..680b1fd94488b9
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst
@@ -0,0 +1 @@
+Increase time delta in 
``test.test_zipfile.test_core.OtherTests.test_write_without_source_date_epoch``

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to