mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
[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:
committed by
GitHub
parent
dd41f93320
commit
368aafb3fb
@@ -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``
|
||||
Reference in New Issue
Block a user