Simplify test in test_doctest_report_none_or_only_first_failure.

This commit is contained in:
Romain Dorgueil 2016-07-23 15:58:13 +02:00
parent f8f690de64
commit d5a70acd48
1 changed files with 15 additions and 15 deletions

View File

@ -840,8 +840,8 @@ class TestDoctestReportingOption:
' 2 3 6',
])
def test_doctest_report_none_or_only_first_failure(self, testdir):
for format in 'none', 'only_first_failure':
@pytest.mark.parametrize('format', ['none', 'only_first_failure'])
def test_doctest_report_none_or_only_first_failure(self, testdir, format):
result = self._run_doctest_report(testdir, format)
result.stdout.fnmatch_lines([
'Expected:',