Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

findpaths: fix regression causing incorrect rootdir to be determined #7813

Merged
merged 1 commit into from Sep 30, 2020

Conversation

bluetech
Copy link
Member

@bluetech bluetech commented Sep 28, 2020

Fixes #7807.

When switching from py.path.local to pathlib (70f3ad1), local.parts(reverse=True) was translated incorrectly, leading to the wrong rootdir being determined in some non-trivial cases where parent directories have config files as well.

When switching from py.path.local to pathlib (70f3ad1),
`local.parts(reverse=True)` was translated incorrectly, leading to the
wrong rootdir being determined in some non-trivial cases where parent
directories have config files as well.
@bluetech bluetech added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Sep 28, 2020
@bluetech bluetech merged commit b250c9d into pytest-dev:master Sep 30, 2020
bluetech added a commit to bluetech/pytest that referenced this pull request Sep 30, 2020
findpaths: fix regression causing incorrect rootdir to be determined
(cherry picked from commit b250c9d)
@bluetech bluetech deleted the findpaths-confusion branch October 1, 2020 14:19
@cjw296
Copy link

cjw296 commented Oct 2, 2020

When's 6.1.1 due to be released? (which I assume will include this fix?)

@The-Compiler
Copy link
Member

@cjw296 "soon" according to #7814 (comment) 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change to config/findpaths.py -> determine_setup in 6.1.0 changes the behavior of pytest find root path
4 participants