mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-32101: Fix tests for PYTHONDEVMODE=1 (#4821)
test_asycio: remove also aio_path which was used when asyncio was developed outside the stdlib.
This commit is contained in:
parent
747f48e2e9
commit
721e25c653
3 changed files with 16 additions and 17 deletions
|
@ -802,17 +802,20 @@ class BaseEventLoopTests(test_utils.TestCase):
|
|||
self.assertEqual(stdout.rstrip(), b'False')
|
||||
|
||||
sts, stdout, stderr = assert_python_ok('-c', code,
|
||||
PYTHONASYNCIODEBUG='')
|
||||
PYTHONASYNCIODEBUG='',
|
||||
PYTHONDEVMODE='')
|
||||
self.assertEqual(stdout.rstrip(), b'False')
|
||||
|
||||
sts, stdout, stderr = assert_python_ok('-c', code,
|
||||
PYTHONASYNCIODEBUG='1')
|
||||
PYTHONASYNCIODEBUG='1',
|
||||
PYTHONDEVMODE='')
|
||||
self.assertEqual(stdout.rstrip(), b'True')
|
||||
|
||||
sts, stdout, stderr = assert_python_ok('-E', '-c', code,
|
||||
PYTHONASYNCIODEBUG='1')
|
||||
self.assertEqual(stdout.rstrip(), b'False')
|
||||
|
||||
# -X dev
|
||||
sts, stdout, stderr = assert_python_ok('-E', '-X', 'dev',
|
||||
'-c', code)
|
||||
self.assertEqual(stdout.rstrip(), b'True')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue