From 305efdd08cfaf117276f22c1b5de6b0e1e30bc1b Mon Sep 17 00:00:00 2001 From: andrei kulakov Date: Tue, 21 Sep 2021 18:06:13 -0400 Subject: [PATCH] [tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (cherry picked from commit a0073471002bed0169fb806703e26880bbcceb73) Co-authored-by: andrei kulakov --- Lib/test/test_exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 09a555a7f16435..82aa79e9962626 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -2298,6 +2298,7 @@ def test_range_of_offsets(self): 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):