diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e567b5d..4e89127 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-24.04 + 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')