Open EdwardBetts opened 1 year ago
asyncio.coroutine has been removed from Python 3.11
$ python3.11 -mpytest Test session starts (platform: linux, Python 3.11.0, pytest 7.1.2, pytest-sugar 0.9.6) benchmark: 3.2.2 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /home/edward/src/2022/vendor/aiotask-context plugins: benchmark-3.2.2, astropy-header-0.2.2, forked-1.4.0, flaky-3.7.0, anyio-3.6.2, sugar-0.9.6, hypothesis-6.36.0, doctestplus-0.12.1, kgb-7.1.1, repeat-0.9.1, django-4.5.2, timeout-2.1.0, pylama-7.4.3, cov-4.0.0, tornasync-0.6.0.post2, remotedata-0.3.3, mock-3.8.2, requests-mock-1.9.3, xdist-2.5.0, asyncio-0.19.0 asyncio: mode=Mode.STRICT collecting ... ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting tests/test_acceptance.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― tests/test_acceptance.py:11: in <module> @asyncio.coroutine E AttributeError: module 'asyncio' has no attribute 'coroutine' ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting tests/test_context.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― tests/test_context.py:8: in <module> @asyncio.coroutine E AttributeError: module 'asyncio' has no attribute 'coroutine' ================================================================================== short test summary info ================================================================================== FAILED tests/test_acceptance.py - AttributeError: module 'asyncio' has no attribute 'coroutine' FAILED tests/test_context.py - AttributeError: module 'asyncio' has no attribute 'coroutine' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Results (0.13s): $
asyncio.coroutine has been removed from Python 3.11