Skip to content

Commit

Permalink
Fixes windows testing error
Browse files Browse the repository at this point in the history
- the differences in path specifications seems to be causing problems.
  • Loading branch information
coordt committed Apr 12, 2023
1 parent 19eaeef commit 556853b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ def test_non_matching_search_does_not_modify_file(tmp_path: Path):
conf, version_config, current_version = get_config_data(overrides)
new_version = current_version.bump("patch", version_config.order)
configured_files = files.resolve_file_config(conf.files, version_config)
with pytest.raises(
exceptions.VersionNotFoundError, match=f"Did not find 'Not-yet-released' in file: '{changelog_path}'"
):
with pytest.raises(exceptions.VersionNotFoundError, match="Did not find 'Not-yet-released' in file:"):
files.modify_files(configured_files, current_version, new_version, get_context(conf))

assert changelog_path.read_text() == changelog_content
Expand Down

0 comments on commit 556853b

Please sign in to comment.