]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH...
authorandrei kulakov <andrei.avk@gmail.com>
Tue, 21 Sep 2021 22:06:13 +0000 (18:06 -0400)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 22:06:13 +0000 (00:06 +0200)
Lib/test/test_exceptions.py

index 6141f2e8f62b0c56468316a12333a9915ab17b36..70d10ebc66e98bdcc25334b7d2cec480162cb8a4 100644 (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):