[Python-checkins] cpython (3.4): asyncio: Update 3.4 asyncio/test_tasks to upstream version

yury.selivanov python-checkins at python.org
Wed Mar 2 10:34:09 EST 2016


https://hg.python.org/cpython/rev/3b69f21d7e62
changeset:   100386:3b69f21d7e62
branch:      3.4
parent:      100355:f0e20d942760
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Wed Mar 02 10:33:22 2016 -0500
summary:
  asyncio: Update 3.4 asyncio/test_tasks to upstream version

files:
  Lib/test/test_asyncio/test_tasks.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -2352,7 +2352,8 @@
                         foo_running = False
 
             dt = self.loop.time() - start
-            self.assertTrue(0.09 < dt < 0.11, dt)
+            # tolerate a small delta for slow delta or unstable clocks
+            self.assertTrue(0.09 < dt < 0.12, dt)
             self.assertFalse(foo_running)
 
         self.loop.run_until_complete(go())

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list