Skip to content

Commit

Permalink
use less specific test to cover all python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Sep 29, 2023
1 parent edb7575 commit 3277b7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion testing/test_regressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def test_write_to_absolute_path_passes_when_subdir_of_root(tmp_path: Path) -> No
subdir = tmp_path / "subdir"
subdir.mkdir()
with pytest.raises(
ValueError, match=".*VERSION.py' does not start with .*subdir.*"
# todo: python version specific error list
ValueError,
match=".*VERSION.py' .* .*subdir.*",
):
write_version_files(replace(c, root=subdir), "1.0", v)

0 comments on commit 3277b7b

Please sign in to comment.