Skip to content

Commit 51a0202

Browse files
committed
Use f-string
1 parent 267cbae commit 51a0202

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

testing/test_xfail_behavior.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_xfail(is_crashing, is_strict, testdir):
9999
expected_lines += (total_summary_line,)
100100

101101
test_module = testdir.makepyfile(
102-
"""
102+
f"""
103103
import os
104104
import signal
105105
@@ -115,9 +115,7 @@ def test_xfail(is_crashing, is_strict, testdir):
115115
@pytest.mark.forked
116116
def test_function():
117117
{test_func_body!s}
118-
""".format(
119-
**locals()
120-
)
118+
"""
121119
)
122120

123121
pytest_run_result = testdir.runpytest(test_module, "-ra")

0 commit comments

Comments
 (0)