()
| 55 | |
| 56 | |
| 57 | def test__check_warning(): |
| 58 | class MyWarning(Warning): |
| 59 | pass |
| 60 | |
| 61 | with warnings.catch_warnings(): |
| 62 | warnings.simplefilter("error") |
| 63 | with _check_warning(True, MyWarning, "foo"): |
| 64 | warnings.warn("foo", MyWarning) |
| 65 | |
| 66 | with pytest.warns(MyWarning, match="foo"): |
| 67 | with _check_warning(False, MyWarning, "foo"): |
| 68 | warnings.warn("foo", MyWarning) |
nothing calls this directly
no test coverage detected