mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (GH-28510)
(cherry picked from commit a007347100
)
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
This commit is contained in:
parent
41d48bc038
commit
c800e39094
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