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

(cherry picked from commit a007347100)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-09-21 15:38:59 -07:00 committed by GitHub
parent 41d48bc038
commit c800e39094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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