diff --git a/tests/run/test_asyncgen.py b/tests/run/test_asyncgen.py index 9f573a0ff8aa7de1e8c7a4a56b328f5456d463d7..6d65262fb5052a4d2ffbfa73345832fbd7bba9b2 100644 --- a/tests/run/test_asyncgen.py +++ b/tests/run/test_asyncgen.py @@ -18,6 +18,9 @@ import contextlib #asyncio = import_module("asyncio") try: + if sys.version_info[:2] == (3, 4): + # asnycio in Py3.4 does not support awaitable coroutines (requires iterators instead) + raise ImportError import asyncio except ImportError: try: