Skip to content

Commit 38e73d9

Browse files
Add f-string for error message
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <[email protected]>
1 parent 6733eb8 commit 38e73d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def test_no_toml_installed_pyproject_toml(self, filename) -> None:
783783
xyzzy = 17
784784
""")
785785
with mock.patch.object(coverage.tomlconfig, "has_tomllib", False):
786-
msg = "Can't read '{filename}' without TOML support"
786+
msg = f"Can't read '{filename}' without TOML support"
787787
with pytest.raises(ConfigError, match=msg):
788788
coverage.Coverage()
789789

@@ -797,7 +797,7 @@ def test_no_toml_installed_pyproject_toml_shorter_syntax(self, filename) -> None
797797
run.parallel = true
798798
""")
799799
with mock.patch.object(coverage.tomlconfig, "has_tomllib", False):
800-
msg = "Can't read '{filename}' without TOML support"
800+
msg = f"Can't read '{filename}' without TOML support"
801801
with pytest.raises(ConfigError, match=msg):
802802
coverage.Coverage()
803803

0 commit comments

Comments
 (0)