summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_subprocess.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index f1ab039..7d72e6c 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -622,6 +622,17 @@ class SubprocessMixin:
self.loop.run_until_complete(execute())
+ def test_create_subprocess_exec_with_path(self):
+ async def execute():
+ p = await subprocess.create_subprocess_exec(
+ support.FakePath(sys.executable), '-c', 'pass')
+ await p.wait()
+ p = await subprocess.create_subprocess_exec(
+ sys.executable, '-c', 'pass', support.FakePath('.'))
+ await p.wait()
+
+ self.assertIsNone(self.loop.run_until_complete(execute()))
+
if sys.platform != 'win32':
# Unix
class SubprocessWatcherMixin(SubprocessMixin):