diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2014-01-26 14:53:38 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2014-01-26 14:53:38 (GMT) |
commit | 77b286b2ccccc407d8ed17b0543b10f7c1ccc864 (patch) | |
tree | 2e95a1c03b79829ebf72698d61da997f501ef1a5 /Lib | |
parent | 23e37aa7b787fd41623c4f3f1eb7ca16ded2ef96 (diff) | |
download | cpython-77b286b2ccccc407d8ed17b0543b10f7c1ccc864.zip cpython-77b286b2ccccc407d8ed17b0543b10f7c1ccc864.tar.gz cpython-77b286b2ccccc407d8ed17b0543b10f7c1ccc864.tar.bz2 |
Close #20105: set __traceback__ when chaining exceptions in C
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_codecs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index f9c9e69..a32ce76 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -2522,6 +2522,7 @@ class ExceptionChainingTest(unittest.TestCase): with self.assertRaisesRegex(exc_type, full_msg) as caught: yield caught self.assertIsInstance(caught.exception.__cause__, exc_type) + self.assertIsNotNone(caught.exception.__cause__.__traceback__) def raise_obj(self, *args, **kwds): # Helper to dynamically change the object raised by a test codec |