mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)
This commit is contained in:
parent
b7eac52b46
commit
a007347100
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue