Skip to content

Commit 43c16c4

Browse files
ci: Pin coverage version for 3.14 Django tests (#5088)
Django tests on Python 3.14 hang in CI with newer `coverage` versions. Skip two tests on Python 3.14 that repeatedly flake.
1 parent 2f966c6 commit 43c16c4

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

scripts/populate_tox/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"Werkzeug<2.1.0",
104104
],
105105
"<3.1": ["pytest-django<4.0"],
106+
"py3.14,py3.14t": ["coverage==7.11.0"],
106107
},
107108
},
108109
"dramatiq": {

tests/profiler/test_transaction_profiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def test_minimum_unique_samples_required(
266266

267267

268268
@pytest.mark.forked
269+
@pytest.mark.skipif(sys.version_info >= (3, 14), reason="Test flakes blocking release.")
269270
def test_profile_captured(
270271
sentry_init,
271272
capture_envelopes,

tests/tracing/test_decorator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import inspect
2+
import sys
23
from unittest import mock
34

45
import pytest
@@ -69,6 +70,7 @@ async def test_trace_decorator_async():
6970

7071

7172
@pytest.mark.asyncio
73+
@pytest.mark.skipif(sys.version_info >= (3, 14), reason="Test flakes blocking release.")
7274
async def test_trace_decorator_async_no_trx():
7375
with patch_start_tracing_child(fake_transaction_is_none=True):
7476
with mock.patch.object(logger, "debug", mock.Mock()) as fake_debug:

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ deps =
622622
django-v3.2.25: Werkzeug<2.1.0
623623
django-v1.11.29: pytest-django<4.0
624624
django-v2.2.28: pytest-django<4.0
625+
{py3.14,py3.14t}-django: coverage==7.11.0
625626

626627
flask-v1.1.4: flask==1.1.4
627628
flask-v2.3.3: flask==2.3.3

0 commit comments

Comments
 (0)