So, I'm trying to match an exception with a doctest.
>>> api = Api("foo", "bar") # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
AuthError
The issue is that this works with py2.7 but not with python 3. The format of exception trace has been changed so now it include the full module name. I.e. in python 3 I have package.module.AuthError
instead.
Is there a way to match both? Seems like IGNORE_EXCEPTION_DETAIL
has no effect here.