diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
commit | 1b94835aac3268a32bfa4ce0df585dbb97457a06 (patch) | |
tree | adbc0aa1467460588e77aa6d574e1ae9abb74f0f /tests/test_config.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index c2874188..ad3b446a 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -181,7 +181,7 @@ class ConfigTest(CoverageTest): ] for bad_config, msg in bad_configs_and_msgs: - print("Trying %r" % bad_config) + print(f"Trying {bad_config!r}") self.make_file(".coveragerc", bad_config) with pytest.raises(CoverageException, match=msg): coverage.Coverage() @@ -689,7 +689,7 @@ class ConfigFileTest(UsingModulesMixin, CoverageTest): ".", ] for bad_file in bad_files: - msg = "Couldn't read %r as a config file" % bad_file + msg = f"Couldn't read {bad_file!r} as a config file" with pytest.raises(CoverageException, match=msg): coverage.Coverage(config_file=bad_file) |