Skip to content

Commit

Permalink
Report only 1st doctest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Jun 5, 2016
1 parent 3e5ffc3 commit efa0edc
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/z3c/batching/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@

import doctest
import unittest
from z3c.batching import batch

__docformat__ = "reStructuredText"


def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite(
'README.txt',
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
doctest.DocFileSuite(
'subset.txt',
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
doctest.DocTestSuite(batch,
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS),
))
optionflags = (doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS |
doctest.REPORT_ONLY_FIRST_FAILURE)
return unittest.TestSuite([
doctest.DocFileSuite('README.txt', optionflags=optionflags),
doctest.DocFileSuite('subset.txt', optionflags=optionflags),
doctest.DocTestSuite('z3c.batching.batch', optionflags=optionflags),
])

0 comments on commit efa0edc

Please sign in to comment.