projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34e424
)
bpo-32684: Fix nits in tests (GH-7225)
author
Yury Selivanov
<yury@magic.io>
Tue, 29 May 2018 23:20:26 +0000
(19:20 -0400)
committer
GitHub
<noreply@github.com>
Tue, 29 May 2018 23:20:26 +0000
(19:20 -0400)
Lib/test/test_asyncio/test_tasks.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_asyncio/test_tasks.py
b/Lib/test/test_asyncio/test_tasks.py
index 1282a98c218fdbf1282a4e054609ec9d67ad0caa..d95c98f0a6179516f96bc24e5d1a89c2aa4ceece 100644
(file)
--- a/
Lib/test/test_asyncio/test_tasks.py
+++ b/
Lib/test/test_asyncio/test_tasks.py
@@
-2131,15
+2131,15
@@
class BaseTaskTests:
time = 0
while True:
time += 0.05
- await asyncio.gather(asyncio.sleep(0.05),
+ await asyncio.gather(asyncio.sleep(0.05
, loop=loop
),
return_exceptions=True,
loop=loop)
if time > 1:
return
async def main():
- qwe =
asyncio.Task(
test())
- await asyncio.sleep(0.2)
+ qwe =
self.new_task(loop,
test())
+ await asyncio.sleep(0.2
, loop=loop
)
qwe.cancel()
try:
await qwe