diff --git a/www/py-tornado4/files/patch-tornado-test-asyncio_test.py b/www/py-tornado4/files/patch-tornado-test-asyncio_test.py new file mode 100644 index 0000000000000..d59c0a88b756a --- /dev/null +++ b/www/py-tornado4/files/patch-tornado-test-asyncio_test.py @@ -0,0 +1,12 @@ +--- tornado/test/asyncio_test.py.orig 2018-01-05 03:07:44 UTC ++++ tornado/test/asyncio_test.py +@@ -46,7 +46,8 @@ class AsyncIOLoopTest(AsyncTestCase): + if hasattr(asyncio, 'ensure_future'): + ensure_future = asyncio.ensure_future + else: +- ensure_future = asyncio.async ++ # async is a reserved word in Python 3.7 ++ ensure_future = getattr(asyncio, "async") + + x = yield ensure_future( + asyncio.get_event_loop().run_in_executor(None, lambda: 42))