mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-01 05:05:48 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user