diff --git a/tests/test_procrunner_system.py b/tests/test_procrunner_system.py index afe4501..6e418c2 100644 --- a/tests/test_procrunner_system.py +++ b/tests/test_procrunner_system.py @@ -82,11 +82,8 @@ raise_timeout_exception=False, ) runtime = timeit.default_timer() - start - if hasattr(result, "timeout"): - with pytest.warns(DeprecationWarning, match="\\.timeout"): - assert result.timeout - else: - assert result["timeout"] + with pytest.warns(DeprecationWarning, match="\\.timeout"): + assert result.timeout assert runtime < 3 assert not result.stdout assert not result.stderr