MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / test_call_with_timeout

Function test_call_with_timeout

tests/utils/test_multiprocessing.py:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31@pytest.mark.skip(reason="Flaky on CI - imports that can exceed timeout on resource-constrained systems")
32def test_call_with_timeout():
33 parameter = (10, "Hello test")
34 assert call_with_timeout(_succeeding_method, 30, parameter) == parameter
35
36 with pytest.raises(ValueError):
37 call_with_timeout(_failing_method, timeout=30)
38
39 with pytest.raises(TimeoutError):
40 call_with_timeout(_hanging_method, timeout=1)

Callers

nothing calls this directly

Calls 1

call_with_timeoutFunction · 0.90

Tested by

no test coverage detected