From 75138343ba2ced53445ca667b14ff1f2005de0b3 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Wed, 30 Sep 2015 21:24:29 -0400 Subject: [PATCH] BUG: Use IGNORE_EXCEPTION_DETAIL in test_doctests. Causes doctest to not care about the module of the raised exception. This matters because Python3 includes the module in the formatted exception, but Python3 doesn't, so the doctest will always fail on one or the other without this flag. --- tests/test_doctests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_doctests.py b/tests/test_doctests.py index d6a5c11a..01da30a2 100644 --- a/tests/test_doctests.py +++ b/tests/test_doctests.py @@ -25,6 +25,7 @@ class DoctestTestCase(TestCase): cls._skip = True else: cls._skip = False + cls.flags = doctest.REPORT_CDIFF | doctest.IGNORE_EXCEPTION_DETAIL def _check_docs(self, module): if self._skip: