py36+: pyupgrade: py36+

This commit is contained in:
Anthony Sottile
2020-10-02 13:16:22 -07:00
parent b1bcb9fba8
commit 66bd44c13a
66 changed files with 264 additions and 346 deletions

View File

@@ -1993,7 +1993,7 @@ class TestAutouseManagement:
pass
"""
)
confcut = "--confcutdir={}".format(testdir.tmpdir)
confcut = f"--confcutdir={testdir.tmpdir}"
reprec = testdir.inline_run("-v", "-s", confcut)
reprec.assertoutcome(passed=8)
config = reprec.getcalls("pytest_unconfigure")[0].config
@@ -3796,7 +3796,7 @@ class TestParameterizedSubRequest:
" test_foos.py::test_foo",
"",
"Requested fixture 'fix_with_param' defined in:",
"{}:4".format(fixfile),
f"{fixfile}:4",
"Requested here:",
"test_foos.py:4",
"*1 failed*",
@@ -3813,9 +3813,9 @@ class TestParameterizedSubRequest:
" test_foos.py::test_foo",
"",
"Requested fixture 'fix_with_param' defined in:",
"{}:4".format(fixfile),
f"{fixfile}:4",
"Requested here:",
"{}:4".format(testfile),
f"{testfile}:4",
"*1 failed*",
]
)