Skip to content

Commit c237dc7

Browse files
committed
chore: update pytest.ini to suppress specific deprecation warnings and modify coroutine check condition
1 parent 9629d1e commit c237dc7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[pytest]
2-
addopts = --durations=10 --cov-config=pyproject.toml --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=90 -W error -p no:cacheprovider -p no:unraisableexception
2+
addopts = --durations=10 --cov-config=pyproject.toml --timeout=120 --timeout_method=thread --cov=runpod --cov-report=xml --cov-report=term-missing --cov-fail-under=90 -W error -W ignore::DeprecationWarning:backoff._decorator -p no:cacheprovider -p no:unraisableexception
33
python_files = tests.py test_*.py *_test.py
44
norecursedirs = venv *.egg-info .git build tests/e2e
55
asyncio_mode = auto

tests/test_serverless/test_modules/test_fitness/test_system_checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import asyncio
9+
import inspect
910
from unittest.mock import patch, MagicMock, AsyncMock
1011

1112
import pytest
@@ -582,7 +583,7 @@ async def test_all_checks_pass_healthy_system(
582583

583584
# Should complete without exceptions
584585
for check in _fitness_checks:
585-
if asyncio.iscoroutinefunction(check):
586+
if inspect.iscoroutinefunction(check):
586587
await check()
587588
else:
588589
check()

0 commit comments

Comments
 (0)