diff options
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 1 |
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): |