Issue #4617
()
| 572 | |
| 573 | |
| 574 | def test_warnings_checker_twice() -> None: |
| 575 | """Issue #4617""" |
| 576 | expectation = pytest.warns(UserWarning) |
| 577 | with expectation: |
| 578 | warnings.warn("Message A", UserWarning) |
| 579 | with expectation: |
| 580 | warnings.warn("Message B", UserWarning) |
| 581 | |
| 582 | |
| 583 | @pytest.mark.filterwarnings("always::UserWarning") |