summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-21 22:38:59 (GMT)
committerGitHub <noreply@github.com>2021-09-21 22:38:59 (GMT)
commitc800e390941e91a9a276191d2f41b7e0e6e23e9e (patch)
treeef272f165feecf3667496e06d44717c5fe6e6a2a /Lib
parent41d48bc038b254cc4a78a2d840097196b9545a84 (diff)
downloadcpython-c800e390941e91a9a276191d2f41b7e0e6e23e9e.zip
cpython-c800e390941e91a9a276191d2f41b7e0e6e23e9e.tar.gz
cpython-c800e390941e91a9a276191d2f41b7e0e6e23e9e.tar.bz2
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (GH-28510)
(cherry picked from commit a0073471002bed0169fb806703e26880bbcceb73) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Diffstat (limited to 'Lib')
-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 09a555a..82aa79e 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):