Update changelog/11081.improvement.rst

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
This commit is contained in:
Ran Benita 2023-06-10 22:14:47 +03:00 committed by GitHub
parent 0dc65193a8
commit 333a350474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ If after updating to this version you see that your `norecursedir` setting is no
it means that a conftest or a plugin you use has a bad `pytest_ignore_collect` implementation. it means that a conftest or a plugin you use has a bad `pytest_ignore_collect` implementation.
Most likely, your hook returns `False` for paths it does not want to ignore, Most likely, your hook returns `False` for paths it does not want to ignore,
which ends the processing and doesn't allow other plugins, including pytest itself, to ignore the path. which ends the processing and doesn't allow other plugins, including pytest itself, to ignore the path.
The fix is simple - return `None` instead of `False` for paths your hook doesn't want to ignore. The fix is to return `None` instead of `False` for paths your hook doesn't want to ignore.