[py] Fix pytest_ignore_collect hook to respect --ignore by mgorny · Pull Request #15787 · SeleniumHQ/selenium

@mgorny

Fix the `pytest_ignore_collect` hook to respect `--ignore` specified
by the user.  Returning `False` stops pytest from consulting additional
hooks, including its default hooks that are necessary to process
`--ignore` option.  By returning `True` or `None`, the hook combines
files ignored by default with ignores specified by the user.

@selenium-ci added the C-py

Python Bindings

label

May 24, 2025

cgoldberg

cgoldberg

@mgorny mgorny deleted the py-fix-ignore-hook branch

May 24, 2025 15:45

This was referenced

Sep 12, 2025

This was referenced

Sep 19, 2025

This was referenced

Oct 1, 2025

This was referenced

Dec 21, 2025

This was referenced

Jan 19, 2026

This was referenced

Feb 16, 2026

This was referenced

Feb 23, 2026