aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2021-09-21 18:06:13 -0400
committerGitHub <noreply@github.com>2021-09-22 00:06:13 +0200
commita0073471002bed0169fb806703e26880bbcceb73 (patch)
tree8361ca6986da038af9c2169f7106963674d02ec4 /Lib/test/test_exceptions.py
parentb7eac52b466f697d3e89f47508e0df0196a98970 (diff)
downloadcpython-a0073471002bed0169fb806703e26880bbcceb73.tar.gz
cpython-a0073471002bed0169fb806703e26880bbcceb73.zip
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 6141f2e8f62..70d10ebc66e 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):