diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bbbd1add..727940a4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8,3.9,"3.10","3.11"] + python-version: [3.8,3.9,"3.10","3.11","3.12"] steps: - name: Install system packages run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8,3.9,"3.10","3.11"] + python-version: [3.8,3.9,"3.10","3.11","3.12"] experimental: [false] include: - python-version: pypy3.9 diff --git a/t/unit/asynchronous/test_hub.py b/t/unit/asynchronous/test_hub.py index 27b048b9..e46d338d 100644 --- a/t/unit/asynchronous/test_hub.py +++ b/t/unit/asynchronous/test_hub.py @@ -193,7 +193,7 @@ class test_Hub: callback = Mock(name='callback') with patch.object(self.hub, '_ready_lock', autospec=True) as lock: self.hub.call_soon(callback) - assert lock.__enter__.called_once() + lock.__enter__.assert_called_once() def test_call_soon__promise_argument(self): callback = promise(Mock(name='callback'), (1, 2, 3)) diff --git a/tox.ini b/tox.ini index af50895b..6e288301 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = - {pypy3.9,3.8,3.9,3.10,3.11}-unit - {pypy3.9,3.8,3.9,3.10,3.11}-linux-integration-py-amqp + {pypy3.9,3.8,3.9,3.10,3.11,3.12}-unit + {pypy3.9,3.8,3.9,3.10,3.11,3.12}-linux-integration-py-amqp {pypy3.9,3.8,3.9,3.10,3.11}-linux-integration-redis {pypy3.9,3.8,3.9,3.10,3.11}-linux-integration-mongodb {3.8,3.9,3.10,3.11}-linux-integration-kafka @@ -17,6 +17,7 @@ python = 3.9: py39 3.10: py310, mypy 3.11: py311 + 3.12: py312 [testenv] sitepackages = False @@ -25,9 +26,9 @@ passenv = DISTUTILS_USE_SDK deps= -r{toxinidir}/requirements/dev.txt - apicheck,pypy3.9,3.8,3.9,3.10,3.11: -r{toxinidir}/requirements/default.txt - apicheck,pypy3.9,3.8,3.9,3.10,3.11: -r{toxinidir}/requirements/test.txt - apicheck,pypy3.9,3.8,3.9,3.10,3.11: -r{toxinidir}/requirements/test-ci.txt + apicheck,pypy3.9,3.8,3.9,3.10,3.11,3.12: -r{toxinidir}/requirements/default.txt + apicheck,pypy3.9,3.8,3.9,3.10,3.11,3.12: -r{toxinidir}/requirements/test.txt + apicheck,pypy3.9,3.8,3.9,3.10,3.11,3.12: -r{toxinidir}/requirements/test-ci.txt apicheck,3.8-linux,3.9-linux,3.10-linux,3.11-linux: -r{toxinidir}/requirements/extras/confluentkafka.txt apicheck,linkcheck: -r{toxinidir}/requirements/docs.txt flake8,pydocstyle,mypy: -r{toxinidir}/requirements/pkgutils.txt @@ -46,6 +47,7 @@ basepython = 3.9: python3.9 3.10,apicheck,pydocstyle,flake8,linkcheck,cov,mypy: python3.10 3.11: python3.11 + 3.12: python3.12 install_command = python -m pip --disable-pip-version-check install {opts} {packages} @@ -131,4 +133,4 @@ commands = pydocstyle {toxinidir}/kombu [testenv:mypy] -commands = python -m mypy --config-file setup.cfg +commands = python -m mypy --config-file setup.cfg \ No newline at end of file