Author dseomn
Recipients dseomn
Date 2020-11-02.18:25:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The traceback in the output of the attached test (see below) doesn't include line 5, which is where the original exception is raised. I think this is because uses the `limit` parameter to try to hide the implementation of `` from the traceback, but `traceback.TracebackException.format()` applies the limit to the chained exception. I'm not sure if that's a bug in unittest or traceback, but from the comment in the above part of unittest, I don't think it's intentional.

FAIL: test_foo (__main__.FooTest)
Traceback (most recent call last):
  File "", line 12, in test_foo
ValueError: foo

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 14, in test_foo'foo() raised ValueError')
AssertionError: foo() raised ValueError

Ran 1 test in 0.000s

FAILED (failures=1)
Date User Action Args
2020-11-02 18:25:59dseomnsetrecipients: + dseomn
2020-11-02 18:25:59dseomnsetmessageid: <>
2020-11-02 18:25:59dseomnlinkissue42247 messages
2020-11-02 18:25:59dseomncreate