diff --git a/IPython/testing/plugin/ipdoctest.py b/IPython/testing/plugin/ipdoctest.py index 4380f4b..de9980e 100644 --- a/IPython/testing/plugin/ipdoctest.py +++ b/IPython/testing/plugin/ipdoctest.py @@ -460,7 +460,7 @@ class DocTestCase(doctests.DocTestCase): try: super(DocTestCase, self).tearDown() except AttributeError, exc: - if exc.message != self._result_var: + if exc.args[0] != self._result_var: raise