test_ok2/changelog/8953.feature.rst

3 lines
209 B
ReStructuredText
Raw Normal View History

:class:`RunResult <_pytest.pytester.RunResult>` method :meth:`assert_outcomes <_pytest.pytester.RunResult.assert_outcomes>` now accepts a
``warnings`` argument to assert the total number of warnings captured.