-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix Module.name from full path without drive letter #7643
Conversation
Decided to refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, and CI seems to be failing, but +1 from on the fix and the split to standalone functions.
def resolve_path_argument( | ||
invocation_dir: py.path.local, arg: str, *, as_pypath=False | ||
) -> Tuple[py.path.local, List[str]]: | ||
"""Parse path arguments optionally containing selection parts and return (fspath, names). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great comment
Hmmm I was hoping to backport this, but this would also need the pathlib improvements we have on master right now (notably |
Fix #7628