Skip to content

Commit 2b3e628

Browse files
committed
test: ignore backoff's asyncio.iscoroutinefunction warning on 3.14
The backoff dependency calls asyncio.iscoroutinefunction in its on_exception decorator; Python 3.14 deprecates it (removal in 3.16). The SDK's own code uses inspect.iscoroutinefunction, and at runtime this is only a warning. Filter it (alongside the existing get_event_loop_policy ignore) so warnings-as-errors doesn't fail the suite until backoff updates. Refs SLS-265
1 parent 14a7ee7 commit 2b3e628

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pytest.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
addopts = --durations=10 --cov-config=.coveragerc --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=90 -p no:cacheprovider -p no:unraisableexception
33
filterwarnings =
44
error
5-
# nest_asyncio (test-only dep) calls the deprecated asyncio.get_event_loop_policy
6-
# on Python 3.14; the SDK itself does not. Don't fail collection on its warning.
5+
# Third-party deps (e.g. backoff) still call asyncio APIs that 3.14 deprecates
6+
# and slates for removal in 3.16. The SDK's own code does not; at runtime these
7+
# only warn. Don't fail the suite on them until the deps update.
78
ignore:'asyncio\.get_event_loop_policy' is deprecated:DeprecationWarning
9+
ignore:'asyncio\.iscoroutinefunction' is deprecated:DeprecationWarning
810
python_files = tests.py test_*.py *_test.py
911
norecursedirs = venv *.egg-info .git build tests/e2e
1012
asyncio_mode = auto

0 commit comments

Comments
 (0)