@@ -504,47 +504,23 @@ def pytest_runtest_logfinish(nodeid, location):
504504
505505
506506@pytest .mark .parametrize (
507- "file_text, only_rerun_texts, should_rerun" ,
507+ "only_rerun_texts, should_rerun" ,
508508 [
509- (
510- 'def test_only_rerun(): raise AssertionError("ERR")' ,
511- ["AssertionError" ],
512- True ,
513- ),
514- ('def test_only_rerun(): raise AssertionError("ERR")' , ["Assertion*" ], True ,),
515- ('def test_only_rerun(): raise AssertionError("ERR")' , ["Assertion" ], True ,),
516- ('def test_only_rerun(): raise AssertionError("ERR")' , ["ValueError" ], False ,),
517- ('def test_only_rerun(): raise AssertionError("ERR")' , ["" ], True ),
518- (
519- 'def test_only_rerun(): raise AssertionError("ERR")' ,
520- ["AssertionError: " ],
521- True ,
522- ),
523- (
524- 'def test_only_rerun(): raise AssertionError("ERR")' ,
525- ["AssertionError: ERR" ],
526- True ,
527- ),
528- ('def test_only_rerun(): raise AssertionError("ERR")' , ["ERR" ], True ),
529- (
530- 'def test_only_rerun(): raise AssertionError("ERR")' ,
531- ["AssertionError,ValueError" ],
532- False ,
533- ),
534- (
535- 'def test_only_rerun(): raise AssertionError("ERR")' ,
536- ["AssertionError ValueError" ],
537- False ,
538- ),
539- (
540- 'def test_only_rerun(): raise AssertionError("ERR")' ,
541- ["AssertionError" , "ValueError" ],
542- True ,
543- ),
509+ (["AssertionError" ], True ),
510+ (["Assertion*" ], True ),
511+ (["Assertion" ], True ),
512+ (["ValueError" ], False ),
513+ (["" ], True ),
514+ (["AssertionError: " ], True ),
515+ (["AssertionError: ERR" ], True ),
516+ (["ERR" ], True ),
517+ (["AssertionError,ValueError" ], False ),
518+ (["AssertionError ValueError" ], False ),
519+ (["AssertionError" , "ValueError" ], True ),
544520 ],
545521)
546- def test_only_rerun_flag (testdir , file_text , only_rerun_texts , should_rerun ):
547- testdir .makepyfile (file_text )
522+ def test_only_rerun_flag (testdir , only_rerun_texts , should_rerun ):
523+ testdir .makepyfile ('def test_only_rerun(): raise AssertionError("ERR")' )
548524
549525 num_failed = 1
550526 num_passed = 0
0 commit comments