mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-111201: A new Python REPL (GH-111567)
Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
parent
40cc809902
commit
f27f8c790a
41 changed files with 5328 additions and 170 deletions
|
@ -500,7 +500,7 @@ class TracebackCases(unittest.TestCase):
|
|||
traceback.format_exception(e.__class__, e)
|
||||
with self.assertRaisesRegex(ValueError, 'Both or neither'):
|
||||
traceback.format_exception(e.__class__, tb=e.__traceback__)
|
||||
with self.assertRaisesRegex(TypeError, 'positional-only'):
|
||||
with self.assertRaisesRegex(TypeError, 'required positional argument'):
|
||||
traceback.format_exception(exc=e)
|
||||
|
||||
def test_format_exception_only_exc(self):
|
||||
|
@ -539,7 +539,7 @@ class TracebackCases(unittest.TestCase):
|
|||
self.assertEqual(
|
||||
str(inspect.signature(traceback.format_exception)),
|
||||
('(exc, /, value=<implicit>, tb=<implicit>, limit=None, '
|
||||
'chain=True)'))
|
||||
'chain=True, **kwargs)'))
|
||||
|
||||
self.assertEqual(
|
||||
str(inspect.signature(traceback.format_exception_only)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue