Skip to content

Commit

Permalink
Add a pattern for normalizing Python 3.5 nested exception doctest out…
Browse files Browse the repository at this point in the history
…put.
  • Loading branch information
warsaw committed Jun 22, 2015
1 parent 1552a20 commit 1331034
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zope/testing/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ def test_suite():
doctest.DocFileSuite(
'wait.txt', setUp=setUp,
checker=renormalizing.RENormalizing([
# For Python 3.4.
(re.compile('zope.testing.wait.TimeOutWaitingFor: '),
'TimeOutWaitingFor: '),
# For Python 3.5
(re.compile('zope.testing.wait.Wait.TimeOutWaitingFor: '),
'TimeOutWaitingFor: '),
])
),
))
Expand Down

0 comments on commit 1331034

Please sign in to comment.