diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-10 12:16:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-10 12:16:02 -0400 |
commit | 4144f9595595f0aff458c3da5c70ff6fe8de570e (patch) | |
tree | e23422851ee3f0564b43ac3e2763805cf67f671d /tests/test_process.py | |
parent | 6c5ef77a267e244f4e50a161bd6bcf09831de943 (diff) | |
download | python-coveragepy-git-4144f9595595f0aff458c3da5c70ff6fe8de570e.tar.gz |
refactor: simplify some strange string formatting
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 6c5dd76b..d5c322fc 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1654,9 +1654,9 @@ def run_in_venv(cmd): """ words = cmd.split() if env.WINDOWS: - words[0] = r"{}\Scripts\{}.exe".format("venv", words[0]) + words[0] = fr"venv\Scripts\{words[0]}.exe" else: - words[0] = "{}/bin/{}".format("venv", words[0]) + words[0] = fr"venv/bin/{words[0]}" status, output = run_command(" ".join(words)) assert status == 0 return output |