File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -840,21 +840,21 @@ def test_doctest_report_ndiff(self, testdir):
840
840
' 2 3 6' ,
841
841
])
842
842
843
- def test_doctest_report_none_or_only_first_failure ( self , testdir ):
844
- for format in 'none' , 'only_first_failure' :
845
- result = self ._run_doctest_report (testdir , format )
846
- result .stdout .fnmatch_lines ([
847
- 'Expected:' ,
848
- ' a b' ,
849
- ' 0 1 4' ,
850
- ' 1 2 4' ,
851
- ' 2 3 6' ,
852
- 'Got:' ,
853
- ' a b' ,
854
- ' 0 1 4' ,
855
- ' 1 2 5' ,
856
- ' 2 3 6' ,
857
- ])
843
+ @ pytest . mark . parametrize ( 'format' , [ 'none' , 'only_first_failure' ])
844
+ def test_doctest_report_none_or_only_first_failure ( self , testdir , format ) :
845
+ result = self ._run_doctest_report (testdir , format )
846
+ result .stdout .fnmatch_lines ([
847
+ 'Expected:' ,
848
+ ' a b' ,
849
+ ' 0 1 4' ,
850
+ ' 1 2 4' ,
851
+ ' 2 3 6' ,
852
+ 'Got:' ,
853
+ ' a b' ,
854
+ ' 0 1 4' ,
855
+ ' 1 2 5' ,
856
+ ' 2 3 6' ,
857
+ ])
858
858
859
859
def test_doctest_report_invalid (self , testdir ):
860
860
result = self ._run_doctest_report (testdir , 'obviously_invalid_format' )
You can’t perform that action at this time.
0 commit comments