()
| 30 | |
| 31 | @pytest.mark.skip(reason="Flaky on CI - imports that can exceed timeout on resource-constrained systems") |
| 32 | def 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) |
nothing calls this directly
no test coverage detected