(pytester: Pytester)
| 293 | |
| 294 | |
| 295 | def test_issue185_time_breaks(pytester: Pytester) -> None: |
| 296 | pytester.makepyfile( |
| 297 | """ |
| 298 | import time |
| 299 | def test_m(monkeypatch): |
| 300 | def f(): |
| 301 | raise Exception |
| 302 | monkeypatch.setattr(time, "time", f) |
| 303 | """ |
| 304 | ) |
| 305 | result = pytester.runpytest() |
| 306 | result.stdout.fnmatch_lines( |
| 307 | """ |
| 308 | *1 passed* |
| 309 | """ |
| 310 | ) |
| 311 | |
| 312 | |
| 313 | def test_importerror(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected