Skip to content

Commit

Permalink
Report only the first error on doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Jul 27, 2016
1 parent cf50723 commit b726b12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/collective/contentalerts/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,8 @@ def tearDownPloneSite(self, portal):
name='CollectiveContentalertsAsyncLayer:FunctionalTesting'
)

optionflags = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)
optionflags = (
doctest.ELLIPSIS |
doctest.NORMALIZE_WHITESPACE |
doctest.REPORT_ONLY_FIRST_FAILURE
)

0 comments on commit b726b12

Please sign in to comment.