diff options
| author | Nils Philippsen <nils@redhat.com> | 2015-09-10 13:44:56 +0200 |
|---|---|---|
| committer | Nils Philippsen <nils@redhat.com> | 2015-09-10 13:44:56 +0200 |
| commit | 85945f7b5c901e3e6b2a43683abec3003e658c51 (patch) | |
| tree | b1c039264114105065ca2e55246d3d8f4165bb53 | |
| parent | 200666040ff737181662824ea33cd019890181f9 (diff) | |
| download | paste-85945f7b5c901e3e6b2a43683abec3003e658c51.tar.gz | |
Python 3: ignore exception details in doctests
Exception details are formatted differently between Python 2 and 3.
| -rw-r--r-- | tests/test_doctests.py | 5 |
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: |
