summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-12-12 22:15:00 (GMT)
committerGitHub <noreply@github.com>2017-12-12 22:15:00 (GMT)
commit721e25c6535d08bd3d4d891fb2b540472e19f899 (patch)
treece7e3b202b33bfeeda4469c6992fe8c4a065312c /Lib/test/test_asyncio/test_base_events.py
parent747f48e2e92390c44c72f52a1239959601cde157 (diff)
downloadcpython-721e25c6535d08bd3d4d891fb2b540472e19f899.zip
cpython-721e25c6535d08bd3d4d891fb2b540472e19f899.tar.gz
cpython-721e25c6535d08bd3d4d891fb2b540472e19f899.tar.bz2
bpo-32101: Fix tests for PYTHONDEVMODE=1 (#4821)
test_asycio: remove also aio_path which was used when asyncio was developed outside the stdlib.
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index 8b08ed1..e43fe69 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -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')