From 1331034bddd064ab09c35df21662c27e539355ca Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 22 Jun 2015 19:11:44 -0400 Subject: [PATCH] Add a pattern for normalizing Python 3.5 nested exception doctest output. --- src/zope/testing/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/zope/testing/tests.py b/src/zope/testing/tests.py index 6bf9153..9c0c4e4 100644 --- a/src/zope/testing/tests.py +++ b/src/zope/testing/tests.py @@ -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: '), ]) ), ))