From a6dda51ecedec16e4fa1b5bc10e2eae31b7a7731 Mon Sep 17 00:00:00 2001 From: nullifyr <158718695+nullifyr@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:17:18 -0700 Subject: [PATCH 1/2] test: isolate state event loops and cover Python compatibility --- .github/workflows/ci.yml | 6 +++++- tests/test_state.py | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e567b5d..8ee467f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,11 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - python: ['3.11', '3.13'] + python: ['3.11', '3.13', '3.14'] + include: + # Keep the documented minimum runtime covered, despite its EOL status. + - os: ubuntu-latest + python: '3.9' runs-on: ${{ matrix.os }} timeout-minutes: 10 steps: diff --git a/tests/test_state.py b/tests/test_state.py index 9c3093b..fa7d4b9 100644 --- a/tests/test_state.py +++ b/tests/test_state.py @@ -4,7 +4,9 @@ from iterm2_harness.state import Actions, EventLog, Observations -class StateTests(unittest.TestCase): +class StateTests(unittest.IsolatedAsyncioTestCase): + # Python 3.9 binds asyncio.Event to the current loop at construction. + # Isolate the loop so preceding async test classes cannot leave it unset. def test_event_epoch_and_overflow_require_resync(self): log = EventLog(capacity=2, epoch='new') for _ in range(3): log.publish('event') From 557b75a031d10aa2012fb93ba3f322c20ce237f3 Mon Sep 17 00:00:00 2001 From: nullifyr <158718695+nullifyr@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:19:53 -0700 Subject: [PATCH 2/2] ci: pin legacy Python job to Ubuntu 24.04 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ee467f..4e89127 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: python: ['3.11', '3.13', '3.14'] include: # Keep the documented minimum runtime covered, despite its EOL status. - - os: ubuntu-latest + - os: ubuntu-24.04 python: '3.9' runs-on: ${{ matrix.os }} timeout-minutes: 10