diff --git a/changelog/3751.trivial.rst b/changelog/3751.trivial.rst new file mode 100644 index 00000000000..4c95886542f --- /dev/null +++ b/changelog/3751.trivial.rst @@ -0,0 +1 @@ +Add a xfailing test for the `regression introduced by package scope `_. diff --git a/testing/python/fixture.py b/testing/python/fixture.py index 240d7a08fa4..05d70033267 100644 --- a/testing/python/fixture.py +++ b/testing/python/fixture.py @@ -1619,6 +1619,9 @@ def test_package(one): reprec = testdir.inline_run() reprec.assertoutcome(passed=2) + @pytest.mark.xfail( + strict=True, reason="https://github.com/pytest-dev/pytest/issues/3742" + ) def test_collect_custom_items(self, testdir): testdir.copy_example("fixtures/custom_item") result = testdir.runpytest("foo")