summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_subprocess.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-10-02 17:53:06 (GMT)
committerGitHub <noreply@github.com>2018-10-02 17:53:06 (GMT)
commit9012a0fb4c4ec1afef9efb9fdb0964554ea17983 (patch)
tree87ff02fec1fa16d87b30e8b1028e71ea624b5b48 /Lib/test/test_asyncio/test_subprocess.py
parent11c4eaa99362f91c7faea88e31df3e46af020023 (diff)
downloadcpython-9012a0fb4c4ec1afef9efb9fdb0964554ea17983.zip
cpython-9012a0fb4c4ec1afef9efb9fdb0964554ea17983.tar.gz
cpython-9012a0fb4c4ec1afef9efb9fdb0964554ea17983.tar.bz2
bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661)
Diffstat (limited to 'Lib/test/test_asyncio/test_subprocess.py')
-rw-r--r--Lib/test/test_asyncio/test_subprocess.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_subprocess.py b/Lib/test/test_asyncio/test_subprocess.py
index 2be311d..a5bdb8e 100644
--- a/Lib/test/test_asyncio/test_subprocess.py
+++ b/Lib/test/test_asyncio/test_subprocess.py
@@ -126,7 +126,7 @@ class SubprocessMixin:
return (exitcode, data)
task = run(b'some data')
- task = asyncio.wait_for(task, 60.0, loop=self.loop)
+ task = asyncio.wait_for(task, 60.0)
exitcode, stdout = self.loop.run_until_complete(task)
self.assertEqual(exitcode, 0)
self.assertEqual(stdout, b'some data')
@@ -144,7 +144,7 @@ class SubprocessMixin:
return proc.returncode, stdout
task = run(b'some data')
- task = asyncio.wait_for(task, 60.0, loop=self.loop)
+ task = asyncio.wait_for(task, 60.0)
exitcode, stdout = self.loop.run_until_complete(task)
self.assertEqual(exitcode, 0)
self.assertEqual(stdout, b'some data')
@@ -233,7 +233,7 @@ class SubprocessMixin:
proc, large_data = self.prepare_broken_pipe_test()
async def write_stdin(proc, data):
- await asyncio.sleep(0.5, loop=self.loop)
+ await asyncio.sleep(0.5)
proc.stdin.write(data)
await proc.stdin.drain()
@@ -504,7 +504,7 @@ class SubprocessMixin:
while True:
data = await process.stdout.read(65536)
if data:
- await asyncio.sleep(0.3, loop=self.loop)
+ await asyncio.sleep(0.3)
else:
break