mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32047: -X dev enables asyncio debug mode (#4418)
The new -X dev command line option now also enables asyncio debug mode.
This commit is contained in:
parent
04dee27208
commit
44862df2ee
6 changed files with 42 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue