Merge branch 'python3.11' into gen/python3.11-support

This commit is contained in:
Roman Mogylatov 2022-12-18 14:22:15 -05:00 committed by GitHub
commit 81cc688c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2

View File

@ -16,6 +16,7 @@ def test_inheritance():
@mark.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11") @mark.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11")
@mark.asyncio @mark.asyncio
@mark.filterwarnings("ignore") @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(): async def test_call_overridden_by_coroutine():
@asyncio.coroutine @asyncio.coroutine
def abstract_example(): 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.skipif(sys.version_info > (3, 10), reason="asyncio.coroutine removed in 3.11")
@mark.asyncio @mark.asyncio
@mark.filterwarnings("ignore") @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(): async def test_call_overridden_by_delegated_coroutine():
@asyncio.coroutine @asyncio.coroutine
def abstract_example(): def abstract_example():

View File

@ -23,7 +23,7 @@ commands = pytest -c tests/.configs/pytest.ini
python_files = test_*_py3*.py python_files = test_*_py3*.py
[testenv:coveralls] [testenv:coveralls]
passenv = GITHUB_*, COVERALLS_* passenv = GITHUB_* COVERALLS_*
basepython=python3.11 basepython=python3.11
usedevelop=True usedevelop=True
deps= deps=