From 51a0202ea456a6261fdb547f80546fa05ea0ab93 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 8 Dec 2021 14:36:00 -0300 Subject: [PATCH] Use f-string --- testing/test_xfail_behavior.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testing/test_xfail_behavior.py b/testing/test_xfail_behavior.py index 54f9dc8..8c6e55a 100644 --- a/testing/test_xfail_behavior.py +++ b/testing/test_xfail_behavior.py @@ -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 @@ -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")