From 713452b906c91805acc81ab9e052708a8d8ce3ee Mon Sep 17 00:00:00 2001 From: James Socol Date: Tue, 17 Feb 2026 17:47:50 -0500 Subject: [PATCH 1/2] Update python versions for test runners Phew it's been a while! Let's get some newer versions of Python, and get rid of some of the older ones. --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f1921cc..f910e862 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,14 @@ on: types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: schedule: - - cron: '33 7 * * 0' # run weekly on sundays + - cron: '33 7 * * 0' # run weekly on sundays jobs: test: strategy: fail-fast: false matrix: os: [ubuntu-latest] - python: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.9'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.11'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -30,7 +30,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.13' - run: pip install flake8 From d53e78175c59f47013e278931e353253c757643a Mon Sep 17 00:00:00 2001 From: James Socol Date: Tue, 17 Feb 2026 18:12:28 -0500 Subject: [PATCH 2/2] This is clearer this way --- statsd/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statsd/tests.py b/statsd/tests.py index 56889772..03582aeb 100644 --- a/statsd/tests.py +++ b/statsd/tests.py @@ -660,7 +660,7 @@ def test_coroutine_timer_decorator(): cl = _udp_client() def _send(*_): - nonlocal already + nonlocal already # noqa: F824 assert already is True, '_send called before coroutine completed' cl._send = _send