diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b108fba..950e2ff 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: [3.8, 3.9, 3.11] steps: - uses: actions/checkout@v2 - name: Install python ${{ matrix.python-version }} diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6c867cd..2fa7de1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,7 @@ Next ---- - Removed debug-level logging of processing metric +- Stop testing Python 3.7 :tag:`1.0.0 <0.1.0...1.0.0>` (20-Jul-2021) ------------------------------------------ diff --git a/setup.cfg b/setup.cfg index dab7ad1..99e74e9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,7 @@ classifiers = Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Topic :: Communications Topic :: Internet Topic :: Software Development @@ -36,7 +37,6 @@ install_requires = tornado = tornado>=5 dev = - asynctest==0.13.0 coverage==5.5 flake8==3.9.2 flake8-import-order==0.18.1 diff --git a/tests/test_processor.py b/tests/test_processor.py index d7b03e3..adff0e0 100644 --- a/tests/test_processor.py +++ b/tests/test_processor.py @@ -6,23 +6,16 @@ import time import typing import unittest.mock -import asynctest - from sprockets_statsd import statsd from tests import helpers -class ProcessorTestCase(asynctest.TestCase): +class ProcessorTestCase(unittest.IsolatedAsyncioTestCase): ip_protocol: int - async def setUp(self): + def setUp(self): self.test_timeout = 5.0 super().setUp() - await self.asyncSetUp() - - async def tearDown(self): - await self.asyncTearDown() - super().tearDown() async def wait_for(self, fut): try: @@ -31,6 +24,7 @@ class ProcessorTestCase(asynctest.TestCase): self.fail('future took too long to resolve') async def asyncSetUp(self): + await super().asyncSetUp() self.statsd_server = helpers.StatsdServer(self.ip_protocol) self.statsd_task = asyncio.create_task(self.statsd_server.run()) await self.statsd_server.wait_running() @@ -38,6 +32,7 @@ class ProcessorTestCase(asynctest.TestCase): async def asyncTearDown(self): self.statsd_server.close() await self.statsd_server.wait_closed() + await super().asyncTearDown() class ProcessorTests(ProcessorTestCase): diff --git a/tox.ini b/tox.ini index 0bdd33d..42a2619 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = lint,distcheck,py37,py38,py39,tornado5 +envlist = lint,distcheck,py38,py39,py311,tornado5 toxworkdir = ./build/tox [testenv]