Skip to content

Commit 9b0a712

Browse files
BYKclaude
andcommitted
fix: Re-add httpcore[asyncio] to tox.ini and fix renamed import
tox.ini needs httpcore[asyncio] in common/linters/mypy deps until it can be regenerated from the template. Also fix the test import that still used the old ASYNC_TRANSPORT_ENABLED name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff3e9a0 commit 9b0a712

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/integrations/asyncio/test_asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,9 @@ def test_loop_close_patching(sentry_init):
645645

646646
@minimum_python_38
647647
def test_loop_close_flushes_async_transport(sentry_init):
648-
from sentry_sdk.transport import ASYNC_TRANSPORT_ENABLED, AsyncHttpTransport
648+
from sentry_sdk.transport import ASYNC_TRANSPORT_AVAILABLE, AsyncHttpTransport
649649

650-
if not ASYNC_TRANSPORT_ENABLED:
650+
if not ASYNC_TRANSPORT_AVAILABLE:
651651
pytest.skip("httpcore[asyncio] not installed")
652652

653653
sentry_init(integrations=[AsyncioIntegration()])

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,17 @@ deps =
384384

385385
linters: -r requirements-linting.txt
386386
linters: werkzeug<2.3.0
387+
linters: httpcore[asyncio]
387388

388389
mypy: -r requirements-linting.txt
389390
mypy: werkzeug<2.3.0
391+
mypy: httpcore[asyncio]
390392
ruff: -r requirements-linting.txt
391393

392394
# === Common ===
393395
py3.8-common: hypothesis
394396
common: pytest-asyncio
397+
common: httpcore[asyncio]
395398
# See https://github.com/pytest-dev/pytest/issues/9621
396399
# and https://github.com/pytest-dev/pytest-forked/issues/67
397400
# for justification of the upper bound on pytest

0 commit comments

Comments
 (0)