[Python-checkins] cpython (merge 3.5 -> default): Merge 3.5 (test_asyncio)

victor.stinner python-checkins at python.org
Mon Feb 1 06:42:39 EST 2016


https://hg.python.org/cpython/rev/fb192db73ab1
changeset:   100138:fb192db73ab1
parent:      100136:8545a082fcaa
parent:      100137:fe6be84981e2
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Feb 01 12:41:24 2016 +0100
summary:
  Merge 3.5 (test_asyncio)

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