[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)

This commit is contained in:
andrei kulakov 2021-09-21 18:06:13 -04:00 committed by GitHub
parent b7eac52b46
commit a007347100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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):