mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-117606: Truncate extremely long error message in test_exceptions
(#117670)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
993c3cca16
commit
02f1385f8a
1 changed files with 2 additions and 1 deletions
|
@ -1451,7 +1451,8 @@ class ExceptionTests(unittest.TestCase):
|
|||
"""
|
||||
rc, out, err = script_helper.assert_python_failure("-c", code)
|
||||
self.assertEqual(rc, 1)
|
||||
self.assertIn(b'RecursionError: maximum recursion depth exceeded', err)
|
||||
expected = b'RecursionError: maximum recursion depth exceeded'
|
||||
self.assertTrue(expected in err, msg=f"{expected!r} not found in {err[:3_000]!r}... (truncated)")
|
||||
self.assertIn(b'Done.', out)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue