From 368aafb3fb5fa87acab80ee2166a66ee91ce5de2 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Tue, 5 May 2026 23:48:22 +0200 Subject: [PATCH] [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 Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Brett Cannon --- Lib/test/test_zipfile/test_core.py | 2 +- .../next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tests/2026-05-05-18-49-44.gh-issue-149425.QnQL8j.rst diff --git a/Lib/test/test_zipfile/test_core.py b/Lib/test/test_zipfile/test_core.py index 6887a5e5cc4..0d407371f40 100644 --- a/Lib/test/test_zipfile/test_core.py +++ b/Lib/test/test_zipfile/test_core.py @@ -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 index 00000000000..680b1fd9448 --- /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``