deprecate the pytest.collect module
changelog minimal unittest for collect module deprecations \!fixup - changelog typo
This commit is contained in:
@@ -25,6 +25,13 @@ def test_resultlog_is_deprecated(testdir):
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("attribute", pytest.collect.__all__) # type: ignore
|
||||
# false positive due to dynamic attribute
|
||||
def test_pytest_collect_module_deprecated(attribute):
|
||||
with pytest.warns(DeprecationWarning, match=attribute):
|
||||
getattr(pytest.collect, attribute)
|
||||
|
||||
|
||||
def test_terminal_reporter_writer_attr(pytestconfig):
|
||||
"""Check that TerminalReporter._tw is also available as 'writer' (#2984)
|
||||
This attribute has been deprecated in 5.4.
|
||||
|
||||
Reference in New Issue
Block a user