Skip to content

Commit 556853b

Browse files
committed
Fixes windows testing error
- the differences in path specifications seems to be causing problems.
1 parent 19eaeef commit 556853b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_files.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ def test_non_matching_search_does_not_modify_file(tmp_path: Path):
248248
conf, version_config, current_version = get_config_data(overrides)
249249
new_version = current_version.bump("patch", version_config.order)
250250
configured_files = files.resolve_file_config(conf.files, version_config)
251-
with pytest.raises(
252-
exceptions.VersionNotFoundError, match=f"Did not find 'Not-yet-released' in file: '{changelog_path}'"
253-
):
251+
with pytest.raises(exceptions.VersionNotFoundError, match="Did not find 'Not-yet-released' in file:"):
254252
files.modify_files(configured_files, current_version, new_version, get_context(conf))
255253

256254
assert changelog_path.read_text() == changelog_content

0 commit comments

Comments
 (0)