]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 21 Sep 2021 22:38:59 +0000 (15:38 -0700)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 22:38:59 +0000 (00:38 +0200)
(cherry picked from commit a0073471002bed0169fb806703e26880bbcceb73)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Lib/test/test_exceptions.py

index 09a555a7f164352ae76665d384d0781e5581787e..82aa79e99626266d0c874c57b153658160f384de 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):