Skip to content

Commit ac1d99e

Browse files
nicoddemusbluetech
andauthored
Apply suggestions from code review
Co-authored-by: Ran Benita <[email protected]>
1 parent df2fccd commit ac1d99e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_pytest/hookspec.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ def pytest_collection_finish(session: "Session") -> None:
311311
def pytest_ignore_collect(
312312
collection_path: Path, path: "LEGACY_PATH", config: "Config"
313313
) -> Optional[bool]:
314-
"""Return ``True`` to prevent considering this path for collection.
314+
"""Return ``True`` to ignore this path for collection.
315315
316316
Return ``None`` to let other plugins ignore the path for collection.
317317
318-
Returning ``False`` will forcefully consider this path to be considered
319-
for collection, without giving a chance of other plugins to ignore this file.
318+
Returning ``False`` will forcefully *not* ignore this path for collection,
319+
without giving a chance for other plugins to ignore this path.
320320
321321
This hook is consulted for all files and directories prior to calling
322322
more specific hooks.

0 commit comments

Comments
 (0)