diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-18 21:35:21 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-01-18 21:35:21 (GMT) |
commit | 391166fbfcdecc5c428db3d67242d1f1beb2b423 (patch) | |
tree | 0229021933173a7b55307afdfde9a7cc7239eaf3 /Lib/test/test_time.py | |
parent | f0ecdd2ab9dabd61540d65bd638d201f45c2b558 (diff) | |
download | cpython-391166fbfcdecc5c428db3d67242d1f1beb2b423.zip cpython-391166fbfcdecc5c428db3d67242d1f1beb2b423.tar.gz cpython-391166fbfcdecc5c428db3d67242d1f1beb2b423.tar.bz2 |
Be more lenient in test_wallclock (issue #10278).
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r-- | Lib/test/test_time.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index ede85b7..1597ac1 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): |