mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-105873: Make _xxsubinterpreters
use exception type name in shared exception (#105874)
This commit is contained in:
parent
2ef1dc37f0
commit
69a39bd9ad
3 changed files with 4 additions and 4 deletions
|
@ -731,10 +731,10 @@ class RunStringTests(TestBase):
|
|||
yield
|
||||
if msg is None:
|
||||
self.assertEqual(str(caught.exception).split(':')[0],
|
||||
str(exctype))
|
||||
exctype.__name__)
|
||||
else:
|
||||
self.assertEqual(str(caught.exception),
|
||||
"{}: {}".format(exctype, msg))
|
||||
"{}: {}".format(exctype.__name__, msg))
|
||||
|
||||
def test_invalid_syntax(self):
|
||||
with self.assert_run_failed(SyntaxError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue