summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-24 20:37:53 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-24 20:37:53 (GMT)
commita02f81ff1757a257c7243ff53542d6f4f34668db (patch)
treeca6cbc226160469f0d16622f308ca88ee68aec1a /Lib/test/test_asyncio/test_base_events.py
parent4c945fe9e9ea813ecb19ed705e1c7b3ae26b0d2a (diff)
downloadcpython-a02f81ff1757a257c7243ff53542d6f4f34668db.zip
cpython-a02f81ff1757a257c7243ff53542d6f4f34668db.tar.gz
cpython-a02f81ff1757a257c7243ff53542d6f4f34668db.tar.bz2
asyncio: Log an error if a Task is destroyed while it is still pending
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 9fa3e6d..773a284 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -244,7 +244,8 @@ class BaseEventLoopTests(test_utils.TestCase):
@mock.patch('asyncio.base_events.logger')
def test__run_once_logging(self, m_logger):
def slow_select(timeout):
- time.sleep(1.0)
+ # Sleep a bit longer than a second to avoid timer resolution issues.
+ time.sleep(1.1)
return []
# logging needs debug flag