mirror of
https://github.com/python/cpython.git
synced 2025-08-10 20:08:47 +00:00
[3.12] gh-117606: Truncate extremely long error message in test_exceptions
(GH-117670) (#117745)
gh-117606: Truncate extremely long error message in `test_exceptions` (GH-117670)
(cherry picked from commit 02f1385f8a
)
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
04d07964f2
commit
2a508572ab
1 changed files with 2 additions and 1 deletions
|
@ -1448,7 +1448,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