Skip to content

Commit 484022f

Browse files
authored
chore: disable python 3.9 coverage (#2178)
1 parent a5f4b11 commit 484022f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ jobs:
204204
enable-cache: true
205205

206206
- run: uv sync --package pydantic-ai-slim --only-dev
207+
- run: rm coverage/.coverage.*-py3.9-* # Exclude 3.9 coverage as it gets the wrong line numbers, causing invalid failures.
207208
- run: uv run coverage combine coverage
208209

209210
- run: uv run coverage html --show-contexts --title "PydanticAI coverage for ${{ github.sha }}"

tests/test_direct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def test_model_request_stream_sync_without_context_manager():
143143

144144
with pytest.raises(RuntimeError, match=expected_error_msg):
145145
for _ in stream_cm:
146-
break
146+
break # pragma: no cover
147147

148148

149149
def test_model_request_stream_sync_exception_in_stream():

0 commit comments

Comments
 (0)