Skip to content

Commit 8174a30

Browse files
authored
changelog: add note to norecursedir/pytest_ignore_collect change (#11095)
1 parent 52cf700 commit 8174a30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

changelog/11081.improvement.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
The :confval:`norecursedir` check is now performed in a :hook:`pytest_ignore_collect` implementation, so plugins can affect it.
2+
3+
If after updating to this version you see that your `norecursedir` setting is not being respected,
4+
it means that a conftest or a plugin you use has a bad `pytest_ignore_collect` implementation.
5+
Most likely, your hook returns `False` for paths it does not want to ignore,
6+
which ends the processing and doesn't allow other plugins, including pytest itself, to ignore the path.
7+
The fix is to return `None` instead of `False` for paths your hook doesn't want to ignore.

0 commit comments

Comments
 (0)