diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 18:25:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:19 -0400 |
commit | ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 (patch) | |
tree | 5cd11a9f699ec93711422b00b519d096b1135ff3 /tests/test_xml.py | |
parent | 4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (diff) | |
download | python-coveragepy-git-ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712.tar.gz |
refactor: pyupgrade --py36-plus tests/**.py
Diffstat (limited to 'tests/test_xml.py')
-rw-r--r-- | tests/test_xml.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_xml.py b/tests/test_xml.py index 334abb4c..9c6cfb58 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -1,4 +1,3 @@ -# coding: utf-8 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt @@ -54,13 +53,13 @@ class XmlTestHelpers(CoverageTest): return os.path.join(curdir, p) for i in range(width): - next_dir = here("d{}".format(i)) + next_dir = here(f"d{i}") self.make_tree(width, depth-1, next_dir) if curdir != ".": self.make_file(here("__init__.py"), "") for i in range(width): - filename = here("f{}.py".format(i)) - self.make_file(filename, "# {}\n".format(filename)) + filename = here(f"f{i}.py") + self.make_file(filename, f"# {filename}\n") def assert_source(self, xmldom, src): """Assert that the XML has a <source> element with `src`.""" |