Skip to content

Commit 3277b7b

Browse files
use less specific test to cover all python versions
1 parent edb7575 commit 3277b7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/test_regressions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def test_write_to_absolute_path_passes_when_subdir_of_root(tmp_path: Path) -> No
119119
subdir = tmp_path / "subdir"
120120
subdir.mkdir()
121121
with pytest.raises(
122-
ValueError, match=".*VERSION.py' does not start with .*subdir.*"
122+
# todo: python version specific error list
123+
ValueError,
124+
match=".*VERSION.py' .* .*subdir.*",
123125
):
124126
write_version_files(replace(c, root=subdir), "1.0", v)

0 commit comments

Comments
 (0)