Skip to content

Fix record_trampoline_hit when tmpdir changed working directory#527

Merged
Otto-AA merged 1 commit into
mainfrom
fix-tmpdir
Jun 10, 2026
Merged

Fix record_trampoline_hit when tmpdir changed working directory#527
Otto-AA merged 1 commit into
mainfrom
fix-tmpdir

Conversation

@Otto-AA

@Otto-AA Otto-AA commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Previously, if a test changed the working directory, then mutmut would fail to resolve the source_paths because it used relative paths to the new working directory.

As a fix, we now resolve the path before running the tests, thus with the original working directory.

@Otto-AA

Otto-AA commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

The regression was added in 2bf799a

@Otto-AA Otto-AA merged commit c01561b into main Jun 10, 2026
10 checks passed
@Otto-AA

Otto-AA commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

Closes #526

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.

1 participant