diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-20 15:14:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 15:14:07 (GMT) |
commit | 44862df2eeec62adea20672b0fe2a5d3e160569e (patch) | |
tree | e8f66bbbd2b7769ca42a292f553a7ecacb29da57 /Lib/test | |
parent | 04dee2720851ec39e831beaa3edc0c59f228f461 (diff) | |
download | cpython-44862df2eeec62adea20672b0fe2a5d3e160569e.zip cpython-44862df2eeec62adea20672b0fe2a5d3e160569e.tar.gz cpython-44862df2eeec62adea20672b0fe2a5d3e160569e.tar.bz2 |
bpo-32047: -X dev enables asyncio debug mode (#4418)
The new -X dev command line option now also enables asyncio debug
mode.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 4 | ||||
-rw-r--r-- | Lib/test/test_asyncio/test_tasks.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index a25069e..98f2aef 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -822,6 +822,10 @@ class BaseEventLoopTests(test_utils.TestCase): PYTHONASYNCIODEBUG='1') self.assertEqual(stdout.rstrip(), b'False') + sts, stdout, stderr = assert_python_ok('-E', '-X', 'dev', + '-c', code) + self.assertEqual(stdout.rstrip(), b'True') + def test_create_task(self): class MyTask(asyncio.Task): pass diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 1d77f9f..f66f7f1 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -2350,6 +2350,10 @@ class GatherTestsBase: PYTHONPATH=aio_path) self.assertEqual(stdout.rstrip(), b'False') + sts, stdout, stderr = assert_python_ok('-E', '-X', 'dev', + '-c', code) + self.assertEqual(stdout.rstrip(), b'True') + class FutureGatherTests(GatherTestsBase, test_utils.TestCase): |