Skip to content

Commit eccea06

Browse files
committed
fix: filter lazy socket resource warnings in runner http tests
1 parent 948e49f commit eccea06

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_apps/test_task_runner_http.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
from runpod.runtimes.task import runner as task_runner
1818
from runpod.runtimes.task.runner import Handler
1919

20+
# http.server's per-request sockets are collected lazily; the unraisable
21+
# checker flags them as ResourceWarnings non-deterministically
22+
pytestmark = pytest.mark.filterwarnings(
23+
"ignore::pytest.PytestUnraisableExceptionWarning"
24+
)
25+
2026
TOKEN = "test-token"
2127

2228

0 commit comments

Comments
 (0)