summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_subprocess.py
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2020-11-28 08:21:17 (GMT)
committerGitHub <noreply@github.com>2020-11-28 08:21:17 (GMT)
commite4fe303b8cca525e97d44e80c7e53bdab9dd9187 (patch)
tree746867bfba9e64e9bbf94d98a910edb06c589890 /Lib/test/test_asyncio/test_subprocess.py
parentf9195318a863e237f41ed7665c767028cde1c9a3 (diff)
downloadcpython-e4fe303b8cca525e97d44e80c7e53bdab9dd9187.zip
cpython-e4fe303b8cca525e97d44e80c7e53bdab9dd9187.tar.gz
cpython-e4fe303b8cca525e97d44e80c7e53bdab9dd9187.tar.bz2
bpo-42392: Remove loop parameter from asyncio.tasks and asyncio.subprocess (GH-23521)
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
-rw-r--r--Lib/test/test_asyncio/test_subprocess.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index 177a02c..225a3ba 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -635,26 +635,6 @@ class SubprocessMixin:
self.assertIsNone(self.loop.run_until_complete(execute()))
- def test_exec_loop_deprecated(self):
- async def go():
- with self.assertWarns(DeprecationWarning):
- proc = await asyncio.create_subprocess_exec(
- sys.executable, '-c', 'pass',
- loop=self.loop,
- )
- await proc.wait()
- self.loop.run_until_complete(go())
-
- def test_shell_loop_deprecated(self):
- async def go():
- with self.assertWarns(DeprecationWarning):
- proc = await asyncio.create_subprocess_shell(
- "exit 0",
- loop=self.loop,
- )
- await proc.wait()
- self.loop.run_until_complete(go())
-
if sys.platform != 'win32':
# Unix