8000 [tests] Add missing assert against expected tracebacks in test_except… · python/cpython@c800e39 · GitHub
[go: up one dir, main page]

Skip to content

Commit c800e39

Browse files
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484) (GH-28510)
(cherry picked from commit a007347) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
1 parent 41d48bc commit c800e39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,6 +2298,7 @@ def test_range_of_offsets(self):
22982298
except SyntaxError as exc:
22992299
with support.captured_stderr() as err:
23002300
sys.__excepthook__(*sys.exc_info())
2301+
self.assertIn(expected, err.getvalue())
23012302
the_exception = exc
23022303

23032304
def test_encodings(self):

0 commit comments

Comments
 (0)
0