diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87a41ac..a2df41c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" twisted: - "22.4.0" - "22.10.0" diff --git a/test/test_bley.py b/test/test_bley.py index 8005a75..d85c1d9 100644 --- a/test/test_bley.py +++ b/test/test_bley.py @@ -74,7 +74,7 @@ def _assert_defer_action(self, data): def _assert_prepend_action(self, data): self.assertEquals(data['action'], b"action=PREPEND") - self.assertRegexpMatches(data['text'].decode('ascii'), r"X-Greylist: delayed .* seconds by bley-.* at .*; .*") + self.assertRegex(data['text'].decode('ascii'), r"X-Greylist: delayed .* seconds by bley-.* at .*; .*") def test_incomplete_request(self): data = { diff --git a/tox.ini b/tox.ini index aaaf978..c9ff1f0 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py36, py37, py38, py39, py310, py311 +envlist = py36, py37, py38, py39, py310, py311, py312 [testenv] commands = make test @@ -29,3 +29,4 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312