mirror of https://github.com/python/cpython
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)
This commit is contained in:
parent
b7eac52b46
commit
a007347100
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue