summaryrefslogtreecommitdiff
path: root/tests/test_doctests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_doctests.py')
-rw-r--r--tests/test_doctests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_doctests.py b/tests/test_doctests.py
index 875fbc2..d59d666 100644
--- a/tests/test_doctests.py
+++ b/tests/test_doctests.py
@@ -1,3 +1,4 @@
+import six
import doctest
from paste.util.import_string import simple_import
import os
@@ -25,7 +26,9 @@ modules = [
'paste.request',
]
-options = doctest.ELLIPSIS|doctest.REPORT_ONLY_FIRST_FAILURE
+options = doctest.ELLIPSIS | doctest.REPORT_ONLY_FIRST_FAILURE
+if six.PY3:
+ options |= doctest.IGNORE_EXCEPTION_DETAIL
def test_doctests():
for filename in filenames: