diff options
author | andrei kulakov <andrei.avk@gmail.com> | 2021-09-21 18:06:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 00:06:13 +0200 |
commit | a0073471002bed0169fb806703e26880bbcceb73 (patch) | |
tree | 8361ca6986da038af9c2169f7106963674d02ec4 /Lib/test/test_exceptions.py | |
parent | b7eac52b466f697d3e89f47508e0df0196a98970 (diff) | |
download | cpython-a0073471002bed0169fb806703e26880bbcceb73.tar.gz cpython-a0073471002bed0169fb806703e26880bbcceb73.zip |
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 6141f2e8f62..70d10ebc66e 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -2298,6 +2298,7 @@ class SyntaxErrorTests(unittest.TestCase): except SyntaxError as exc: with support.captured_stderr() as err: sys.__excepthook__(*sys.exc_info()) + self.assertIn(expected, err.getvalue()) the_exception = exc def test_encodings(self): |