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

Use patch file on Windows never executes mutants #311

Closed
FlTr opened this issue Mar 27, 2024 · 0 comments · Fixed by #313
Closed

Use patch file on Windows never executes mutants #311

FlTr opened this issue Mar 27, 2024 · 0 comments · Fixed by #313

Comments

@FlTr
Copy link
Contributor

FlTr commented Mar 27, 2024

Using the option --use-patch-file on Windows is not possible.
Patch file and the resulting Config.covered_lines_by_filename array do use unix paths separators "/". While the Context.filename uses windows paths separators "\".

This causes should_exclude always to return True, and therefore no mutants are tested at all.

Config.covered_lines_by_filename = {
  'src/my-pkg/foo.py': { 1, 2, 42 }
}
Context.filename = 'src\\my-pkg\\foo.py'
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 a pull request may close this issue.

1 participant