@@ -286,9 +286,7 @@ def test_x():
286286 assert outer is not None
287287 assert outer .statuses [- 1 ] == TestStatus .SKIPPED
288288 duplicates = [s for s in capture .steps_by_name ("test_x" ) if s is not outer ]
289- assert not duplicates , (
290- f"expected no duplicate nested step; got { len (duplicates )} "
291- )
289+ assert not duplicates , f"expected no duplicate nested step; got { len (duplicates )} "
292290
293291
294292def test_pytest_mark_skip_records_skipped (inner ):
@@ -344,9 +342,7 @@ def test_x(skipping_fixture):
344342 assert outer is not None
345343 assert outer .statuses [- 1 ] == TestStatus .SKIPPED
346344 duplicates = [s for s in capture .steps_by_name ("test_x" ) if s is not outer ]
347- assert not duplicates , (
348- f"expected no duplicate nested step; got { len (duplicates )} "
349- )
345+ assert not duplicates , f"expected no duplicate nested step; got { len (duplicates )} "
350346
351347
352348# ---------------------------------------------------------------------------
@@ -371,9 +367,7 @@ def test_x():
371367 assert outer is not None
372368 assert outer .statuses [- 1 ] == TestStatus .PASSED
373369 duplicates = [s for s in capture .steps_by_name ("test_x" ) if s is not outer ]
374- assert not duplicates , (
375- f"expected no duplicate nested step; got { len (duplicates )} "
376- )
370+ assert not duplicates , f"expected no duplicate nested step; got { len (duplicates )} "
377371
378372
379373def test_xfail_strict_unexpected_pass (inner ):
0 commit comments