-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
combine aliases does not work on windows base dir paths (ie: "X:\") #577
Comments
vaab
added a commit
to 0k/coveragepy
that referenced
this issue
Dec 14, 2020
vaab
added a commit
to 0k/coveragepy
that referenced
this issue
Dec 14, 2020
vaab
added a commit
to 0k/coveragepy
that referenced
this issue
Dec 26, 2020
This is now released as part of coverage 5.4. |
This was referenced Mar 13, 2021
This was referenced May 21, 2021
This was referenced Jun 6, 2021
This was referenced Jun 6, 2021
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported by vaab (Bitbucket: vaab, GitHub: vaab)
I produced some
.coverage
file under windows that needs to be combined.The paths to be aliased is "T:" (context: I'm using a netshare to automate tests in windows VM)
This doesn't get aliased properly when specifying::
Why
because in
files.py
, inPathAliases.add(..)
...Problem 1:
you'll have these 3 lines::
Notice that first the pattern given is stripped from it's ending slashes (first instruction), and then (last instruction) the function
sep(..)
is called to guess what is the pattern separator... which will not be possible since all slashes have been removed.Moving the last instruction before the
.rstrip(..)
seems the way to go.Problem 2
Having removed the last "/" will make this path as a relative one ("T:" is relative, and "T:/" is not)... thus these following lines will mess badly with the pattern::
A suggested workaround would be to add
+ pattern_sep
in theisabs_anywhere(..)
call.The text was updated successfully, but these errors were encountered: