Commit 527b46d
authored
test_unittest: skip asynctest for Python 3.11+ (#13777)
asynctest is not supported for Python 3.11+ because `@asyncio.coroutine` was removed in Python 3.11.
Running the test suite with `tox -e py312-asynctest` gives this error:
```
class _AwaitEvent:
def __init__(self, mock):
self._mock = mock
self._condition = None
> @asyncio.coroutine
^^^^^^^^^^^^^^^^^
E AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?
```1 parent d241a19 commit 527b46d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1325 | 1328 | | |
1326 | 1329 | | |
1327 | 1330 | | |
1328 | | - | |
1329 | 1331 | | |
1330 | 1332 | | |
1331 | 1333 | | |
| |||
0 commit comments