[Python-checkins] cpython: Be more lenient in test_wallclock (issue #10278).
antoine.pitrou
python-checkins at python.org
Wed Jan 18 22:37:46 CET 2012
http://hg.python.org/cpython/rev/83e8c3a6a81c
changeset: 74513:83e8c3a6a81c
user: Antoine Pitrou <solipsis at pitrou.net>
date: Wed Jan 18 22:35:21 2012 +0100
summary:
Be more lenient in test_wallclock (issue #10278).
files:
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
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -331,13 +331,13 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list