From 5d85d8028d3b173b63f5a62c03fc4f3487afb801 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Tue, 5 May 2026 14:22:04 -0700 Subject: [PATCH] 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 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``