clean up test
Markus Gerstel
2 years ago
81 | 81 | raise_timeout_exception=False, |
82 | 82 | ) |
83 | 83 | runtime = timeit.default_timer() - start |
84 | if hasattr(result, "timeout"): | |
85 | with pytest.warns(DeprecationWarning, match="\\.timeout"): | |
86 | assert result.timeout | |
87 | else: | |
88 | assert result["timeout"] | |
84 | with pytest.warns(DeprecationWarning, match="\\.timeout"): | |
85 | assert result.timeout | |
89 | 86 | assert runtime < 3 |
90 | 87 | assert not result.stdout |
91 | 88 | assert not result.stderr |