summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-01-18 21:35:21 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-01-18 21:35:21 (GMT)
commit391166fbfcdecc5c428db3d67242d1f1beb2b423 (patch)
tree0229021933173a7b55307afdfde9a7cc7239eaf3
parentf0ecdd2ab9dabd61540d65bd638d201f45c2b558 (diff)
downloadcpython-391166fbfcdecc5c428db3d67242d1f1beb2b423.zip
cpython-391166fbfcdecc5c428db3d67242d1f1beb2b423.tar.gz
cpython-391166fbfcdecc5c428db3d67242d1f1beb2b423.tar.bz2
Be more lenient in test_wallclock (issue #10278).
-rw-r--r--Lib/test/test_time.py4
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):