()
| 37 | |
| 38 | |
| 39 | def test__check_warning(): |
| 40 | class MyWarning(Warning): |
| 41 | pass |
| 42 | |
| 43 | with warnings.catch_warnings(): |
| 44 | warnings.simplefilter("error") |
| 45 | with _check_warning(True, MyWarning, "foo"): |
| 46 | warnings.warn("foo", MyWarning) |
| 47 | |
| 48 | with pytest.warns(MyWarning, match="foo"): |
| 49 | with _check_warning(False, MyWarning, "foo"): |
| 50 | warnings.warn("foo", MyWarning) |
nothing calls this directly
no test coverage detected