summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-22 22:19:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-22 22:19:33 (GMT)
commitc082ee692bc92232031b050d4c6aa2510c6ef55e (patch)
tree696f2f72a403137538fd39d0b643f8590ddc8812 /Lib/test/test_asyncio/test_tasks.py
parent7b7120e159e2cb951b01773a164426c9e0bffa2d (diff)
downloadcpython-c082ee692bc92232031b050d4c6aa2510c6ef55e.zip
cpython-c082ee692bc92232031b050d4c6aa2510c6ef55e.tar.gz
cpython-c082ee692bc92232031b050d4c6aa2510c6ef55e.tar.bz2
asyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
enables debug mode of the event loop.
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index 3c358a2..4b55a8a 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1577,11 +1577,7 @@ class GatherTestsBase:
self.assertEqual(fut.result(), [3, 1, exc, exc2])
def test_env_var_debug(self):
- path = os.path.dirname(asyncio.__file__)
- path = os.path.normpath(os.path.join(path, '..'))
code = '\n'.join((
- 'import sys',
- 'sys.path.insert(0, %r)' % path,
'import asyncio.tasks',
'print(asyncio.tasks._DEBUG)'))