summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-31 09:55:55 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-31 09:55:55 (GMT)
commit31f65044a977307915412edffddcb4962a8928a3 (patch)
tree61581d2ccefe9ee41417b4711468acc720150c03 /Lib/test/test_asyncio/test_events.py
parent0278032110fe5fc769d2160baeb3576714a2acd5 (diff)
downloadcpython-31f65044a977307915412edffddcb4962a8928a3.zip
cpython-31f65044a977307915412edffddcb4962a8928a3.tar.gz
cpython-31f65044a977307915412edffddcb4962a8928a3.tar.bz2
Issue #20452: Oops, fix debug code :-/
Add also event more debug info
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r--Lib/test/test_asyncio/test_events.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index 4e02ee0..aef4993 100644
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -1160,6 +1160,7 @@ class EventLoopTestsMixin:
# FIXME: remove this imports, used for debug purpose (issue #20452)
import time
import platform
+ import os
def _run_once():
self.loop._run_once_counter += 1
@@ -1181,11 +1182,16 @@ class EventLoopTestsMixin:
self.loop.run_until_complete(wait())
calls.append(self.loop._run_once_counter)
+ try:
+ SC_CLK_TCK = os.sysconf('SC_CLK_TCK')
+ except Exception:
+ SC_CLK_TCK = None
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'),
+ SC_CLK_TCK,
platform.platform()))