diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-06-25 12:15:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 12:15:40 (GMT) |
commit | 06a40d735939fd7d5cb77a68a6e18299b6484fa5 (patch) | |
tree | 1d830596f995942fb2b6088002cab6ebcb0aee0d /Lib/test/test_asyncio/test_subprocess.py | |
parent | 91698d8caa4b5bb6e8dbb64b156e8afe9e32cac1 (diff) | |
download | cpython-06a40d735939fd7d5cb77a68a6e18299b6484fa5.zip cpython-06a40d735939fd7d5cb77a68a6e18299b6484fa5.tar.gz cpython-06a40d735939fd7d5cb77a68a6e18299b6484fa5.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-20824)
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
-rw-r--r-- | Lib/test/test_asyncio/test_subprocess.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py index 6657a88..177a02c 100644 --- a/Lib/test/test_asyncio/test_subprocess.py +++ b/Lib/test/test_asyncio/test_subprocess.py @@ -10,6 +10,7 @@ from asyncio import base_subprocess from asyncio import subprocess from test.test_asyncio import utils as test_utils from test import support +from test.support import os_helper if sys.platform != 'win32': from asyncio import unix_events @@ -626,10 +627,10 @@ class SubprocessMixin: def test_create_subprocess_exec_with_path(self): async def execute(): p = await subprocess.create_subprocess_exec( - support.FakePath(sys.executable), '-c', 'pass') + os_helper.FakePath(sys.executable), '-c', 'pass') await p.wait() p = await subprocess.create_subprocess_exec( - sys.executable, '-c', 'pass', support.FakePath('.')) + sys.executable, '-c', 'pass', os_helper.FakePath('.')) await p.wait() self.assertIsNone(self.loop.run_until_complete(execute())) @@ -737,7 +738,7 @@ class GenericWatcherTests: with self.assertRaises(RuntimeError): await subprocess.create_subprocess_exec( - support.FakePath(sys.executable), '-c', 'pass') + os_helper.FakePath(sys.executable), '-c', 'pass') watcher.add_child_handler.assert_not_called() |