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.
This commit is contained in:
Scott Sanderson
2015-09-30 21:24:29 -04:00
parent 670706158a
commit 75138343ba
+1
View File
@@ -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: