diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-09-01 18:20:32 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-09-01 18:20:32 -0400 |
commit | ada27a855934588cf753f8712bd72d41eadb1058 (patch) | |
tree | 5666295cdd896f9e3810a5467a4e9fac8b76ae0a /tests/test_process.py | |
parent | 6ac3ca707457c62c16470c805fc5fa4e38fd59eb (diff) | |
download | python-coveragepy-git-ada27a855934588cf753f8712bd72d41eadb1058.tar.gz |
No need for format indexes (mostly)
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 000330ad..be7ae446 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -164,7 +164,7 @@ class ProcessTest(CoverageTest): self.assertEqual(status, 1) for n in "12": - self.assert_exists(".coverage.bad{0}".format(n)) + self.assert_exists(".coverage.bad{}".format(n)) warning_regex = ( r"(" # JSON message: r"Coverage.py warning: Couldn't read data from '.*\.coverage\.bad{0}': " @@ -1345,7 +1345,7 @@ def possible_pth_dirs(): def find_writable_pth_directory(): """Find a place to write a .pth file.""" for pth_dir in possible_pth_dirs(): # pragma: part covered - try_it = os.path.join(pth_dir, "touch_{0}.it".format(WORKER)) + try_it = os.path.join(pth_dir, "touch_{}.it".format(WORKER)) with open(try_it, "w") as f: try: f.write("foo") @@ -1370,7 +1370,7 @@ class ProcessCoverageMixin(object): # Create the .pth file. self.assertTrue(PTH_DIR) pth_contents = "import coverage; coverage.process_startup()\n" - pth_path = os.path.join(PTH_DIR, "subcover_{0}.pth".format(WORKER)) + pth_path = os.path.join(PTH_DIR, "subcover_{}.pth".format(WORKER)) with open(pth_path, "w") as pth: pth.write(pth_contents) self.pth_path = pth_path |