Skip to content

Commit

Permalink
Use f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Dec 8, 2021
1 parent 267cbae commit 51a0202
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions testing/test_xfail_behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_xfail(is_crashing, is_strict, testdir):
expected_lines += (total_summary_line,)

test_module = testdir.makepyfile(
"""
f"""
import os
import signal
Expand All @@ -115,9 +115,7 @@ def test_xfail(is_crashing, is_strict, testdir):
@pytest.mark.forked
def test_function():
{test_func_body!s}
""".format(
**locals()
)
"""
)

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

0 comments on commit 51a0202

Please sign in to comment.