From 09a120b067960909e7d0bc30a14e3298700af91d Mon Sep 17 00:00:00 2001 From: farmio Date: Mon, 2 Oct 2023 23:14:02 +0200 Subject: [PATCH 1/2] Add Python 3.12 test runner --- .github/workflows/ci.yml | 2 +- pyproject.toml | 2 +- requirements/testing.txt | 2 +- tox.ini | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b24dabc1..91859de6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index 0d4feb608..b1d81b51b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ version = {attr = "xknx.__version__.__version__"} include = ["xknx*"] [tool.black] -target-version = ["py39", "py310", "py311"] +target-version = ["py39", "py310", "py311", "py312"] exclude = "generated" diff --git a/requirements/testing.txt b/requirements/testing.txt index f2b04116e..421df06ac 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -2,7 +2,7 @@ pre-commit==3.4.0 isort==5.12.0 flake8==6.1.0 -pylint==2.17.7 +pylint==3.0.0 pytest==7.4.2 pytest-asyncio==0.21.1 pytest-cov==4.1.0 diff --git a/tox.ini b/tox.ini index dfa5029d3..4b3bbfee9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39, py310, py311, typing, lint, pylint +envlist = py39, py310, py311, py312, typing, lint, pylint skip_missing_interpreters = True [testenv] From f9a7bdb63ed347644ca9ef8eb17879b7c30a2d3e Mon Sep 17 00:00:00 2001 From: farmio Date: Wed, 4 Oct 2023 21:09:18 +0200 Subject: [PATCH 2/2] Update routing_test.py --- test/io_tests/routing_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/io_tests/routing_test.py b/test/io_tests/routing_test.py index bd237e4de..2fb5d71b6 100644 --- a/test/io_tests/routing_test.py +++ b/test/io_tests/routing_test.py @@ -77,7 +77,7 @@ async def test_routing_lost_message(self, logging_mock): ) raw = bytes((0x06, 0x10, 0x05, 0x31, 0x00, 0x0A, 0x04, 0x00, 0x00, 0x05)) routing.transport.data_received_callback(raw, ("192.168.1.2", 3671)) - assert logging_mock.called_once_with( + logging_mock.assert_called_once_with( "RoutingLostMessage received from %s - %s lost messages.", "192.168.1.2", 5,