From 391166fbfcdecc5c428db3d67242d1f1beb2b423 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 18 Jan 2012 22:35:21 +0100 Subject: [PATCH] Be more lenient in test_wallclock (issue #10278). --- Lib/test/test_time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index ede85b74b4..1597ac1ace 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -331,13 +331,13 @@ class TimeTestCase(unittest.TestCase): pass self.assertEqual(time.strftime('%Z', tt), tzname) - def test_wallclock(self): t0 = time.wallclock() time.sleep(0.1) t1 = time.wallclock() t = t1 - t0 - self.assertAlmostEqual(t, 0.1, places=2) + self.assertAlmostEqual(t, 0.1, delta=0.2) + class TestLocale(unittest.TestCase): def setUp(self): -- 2.40.0