diff --git a/testing/test_deprecated_api.py b/testing/test_deprecated_api.py index bf513aee2..2aa29b8ef 100644 --- a/testing/test_deprecated_api.py +++ b/testing/test_deprecated_api.py @@ -292,7 +292,7 @@ def test_conftest_non_python_items(recwarn, testdir): assert item.name == "hello.xxx" assert item.__class__.__name__ == "CustomItem" -def test_extra_python_files_and_functions(testdir): +def test_extra_python_files_and_functions(testdir, recwarn): testdir.makepyfile(conftest=""" import py class MyFunction(py.test.collect.Function):