summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-31 08:29:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-31 08:29:35 (GMT)
commit0278032110fe5fc769d2160baeb3576714a2acd5 (patch)
tree9e502a9ea4369fde3f0ee46e357aff3d220950b9 /Lib/test/test_asyncio/test_events.py
parenta849be9c64fbda40de2e2643b4cb8f37e1d06e5d (diff)
downloadcpython-0278032110fe5fc769d2160baeb3576714a2acd5.zip
cpython-0278032110fe5fc769d2160baeb3576714a2acd5.tar.gz
cpython-0278032110fe5fc769d2160baeb3576714a2acd5.tar.bz2
Issue #20452: add more info in case of test_asyncio failure to try to debug the
failure on buildbot "x86 Ubuntu Shared 3.x"
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r--Lib/test/test_asyncio/test_events.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 24808cb..4e02ee0 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1157,6 +1157,10 @@ class EventLoopTestsMixin:
w.close()
def test_timeout_rounding(self):
+ # FIXME: remove this imports, used for debug purpose (issue #20452)
+ import time
+ import platform
+
def _run_once():
self.loop._run_once_counter += 1
orig_run_once()
@@ -1177,7 +1181,12 @@ class EventLoopTestsMixin:
self.loop.run_until_complete(wait())
calls.append(self.loop._run_once_counter)
- self.assertEqual(calls, [1, 3, 5, 6])
+ self.assertEqual(calls, [1, 3, 5, 6],
+ # FIXME: remove these info, used for debug purpose (issue #20452)
+ (self.loop._granularity,
+ self.loop._selector.resolution,
+ time.get_clock_info('monotonic'),
+ platform.platform()))
class SubprocessTestsMixin: