diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml index 23a48e9d..e0f7ebb4 100644 --- a/.github/workflows/tests-and-linters.yml +++ b/.github/workflows/tests-and-linters.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "3.11", pypy2, pypy3] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, pypy2, pypy3] steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 diff --git a/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py b/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py index 9917d7a2..5a078664 100644 --- a/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py +++ b/tests/unit/providers/coroutines/test_abstract_coroutine_py35.py @@ -16,6 +16,7 @@ def test_inheritance(): @mark.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11") @mark.asyncio @mark.filterwarnings("ignore") +@mark.skipif(sys.version_info >= (3, 11), reason="Cannot be executed on Python 3.11 or newer") async def test_call_overridden_by_coroutine(): @asyncio.coroutine def abstract_example(): @@ -31,6 +32,7 @@ async def test_call_overridden_by_coroutine(): @mark.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11") @mark.asyncio @mark.filterwarnings("ignore") +@mark.skipif(sys.version_info >= (3, 11), reason="Cannot be executed on Python 3.11 or newer") async def test_call_overridden_by_delegated_coroutine(): @asyncio.coroutine def abstract_example(): diff --git a/tox.ini b/tox.ini index 17bdaff3..e88542de 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ commands = pytest -c tests/.configs/pytest.ini python_files = test_*_py3*.py [testenv:coveralls] -passenv = GITHUB_*, COVERALLS_* +passenv = GITHUB_* COVERALLS_* basepython=python3.11 usedevelop=True deps=