mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-03 03:43:29 +03:00
Merge branch 'python3.11' into gen/python3.11-support
This commit is contained in:
commit
81cc688c33
2
.github/workflows/tests-and-linters.yml
vendored
2
.github/workflows/tests-and-linters.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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():
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -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=
|
||||||
|
|
Loading…
Reference in New Issue
Block a user