From: andrei kulakov Date: Tue, 21 Sep 2021 22:06:13 +0000 (-0400) Subject: [tests] Add missing assert against expected tracebacks in test_exceptions.py (GH... X-Git-Tag: v3.11.0a1~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0073471002bed0169fb806703e26880bbcceb73;p=thirdparty%2FPython%2Fcpython.git [tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 6141f2e8f62b..70d10ebc66e9 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):