Blame SOURCES/await.patch
|
rdobuilder |
e63cc0 |
diff -ru txaio-2.10.0/test/test_gather.py txaio-2.10.0_patched/test/test_gather.py
|
|
rdobuilder |
e63cc0 |
--- txaio-2.10.0/test/test_gather.py 2018-03-02 08:04:45.000000000 +0100
|
|
rdobuilder |
e63cc0 |
+++ txaio-2.10.0_patched/test/test_gather.py 2018-08-01 13:03:40.237465405 +0200
|
|
rdobuilder |
e63cc0 |
@@ -26,7 +26,7 @@
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
import txaio
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
-from util import await
|
|
rdobuilder |
e63cc0 |
+from util import await_completion
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
def test_gather_two(framework):
|
|
rdobuilder |
e63cc0 |
@@ -61,7 +61,7 @@
|
|
rdobuilder |
e63cc0 |
txaio.add_callbacks(f2, done, error)
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
for f in [f0, f1, f2]:
|
|
rdobuilder |
e63cc0 |
- await(f)
|
|
rdobuilder |
e63cc0 |
+ await_completion(f)
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
assert len(results) == 1
|
|
rdobuilder |
e63cc0 |
assert len(errors) == 0
|
|
rdobuilder |
e63cc0 |
@@ -99,7 +99,7 @@
|
|
rdobuilder |
e63cc0 |
# out of "run_until_complete()" as well; fix util.py?
|
|
rdobuilder |
e63cc0 |
for f in [f0, f1, f2]:
|
|
rdobuilder |
e63cc0 |
try:
|
|
rdobuilder |
e63cc0 |
- await(f)
|
|
rdobuilder |
e63cc0 |
+ await_completion(f)
|
|
rdobuilder |
e63cc0 |
except Exception:
|
|
rdobuilder |
e63cc0 |
pass
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
Only in txaio-2.10.0_patched/test: .test_gather.py.swp
|
|
rdobuilder |
e63cc0 |
diff -ru txaio-2.10.0/test/util.py txaio-2.10.0_patched/test/util.py
|
|
rdobuilder |
e63cc0 |
--- txaio-2.10.0/test/util.py 2017-04-15 16:17:17.000000000 +0200
|
|
rdobuilder |
e63cc0 |
+++ txaio-2.10.0_patched/test/util.py 2018-08-01 13:02:30.099152902 +0200
|
|
rdobuilder |
e63cc0 |
@@ -57,7 +57,7 @@
|
|
rdobuilder |
e63cc0 |
asyncio.gather(*asyncio.Task.all_tasks())
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
|
|
rdobuilder |
e63cc0 |
-def await(future):
|
|
rdobuilder |
e63cc0 |
+def await_completion(future):
|
|
rdobuilder |
e63cc0 |
'''
|
|
rdobuilder |
e63cc0 |
Essentially just a way to call "run_until_complete" that becomes a
|
|
rdobuilder |
e63cc0 |
no-op if we're using Twisted.
|
|
rdobuilder |
e63cc0 |
Only in txaio-2.10.0_patched/test: .util.py.swp
|