Skip to content

Fix rerun exclude path normalization - #372

Merged
icemac merged 1 commit into
pytest-dev:masterfrom
janmrow:fix-rerun-exclude-path-normalization
Sep 17, 2026
Merged

icemac merged 1 commit into
pytest-dev:masterfrom
janmrow:fix-rerun-exclude-path-normalization

Conversation

@janmrow

@janmrow janmrow commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

--rerun-exclude-path does not currently recognize lexically equivalent relative paths containing parent (..) segments.

For example, given an excluded excluded/ directory:

--rerun-exclude-path excluded

prevents reruns as expected, while:

--rerun-exclude-path excluded/../excluded

does not, causing tests under the excluded directory to be rerun.

This PR makes equivalent exclude paths behave consistently.

@janmrow
janmrow force-pushed the fix-rerun-exclude-path-normalization branch from 739f7a8 to c5984c0 Compare September 16, 2026 18:30
@icemac
icemac merged commit b46843e into pytest-dev:master Sep 17, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants