mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-104469: Convert _testcapi/exceptions to use AC (gh-104502)
This commit is contained in:
parent
60993ba8b4
commit
2e91c7e626
4 changed files with 536 additions and 102 deletions
|
@ -66,7 +66,7 @@ class Test_FatalError(unittest.TestCase):
|
|||
rc, out, err = assert_python_failure('-sSI', '-c', code)
|
||||
|
||||
err = decode_stderr(err)
|
||||
self.assertIn('Fatal Python error: test_fatal_error: MESSAGE\n',
|
||||
self.assertIn('Fatal Python error: _testcapi_fatal_error_impl: MESSAGE\n',
|
||||
err)
|
||||
|
||||
match = re.search(r'^Extension modules:(.*) \(total: ([0-9]+)\)$',
|
||||
|
|
|
@ -270,7 +270,7 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
""",
|
||||
2,
|
||||
'xyz',
|
||||
func='test_fatal_error',
|
||||
func='_testcapi_fatal_error_impl',
|
||||
py_fatal_error=True)
|
||||
|
||||
def test_fatal_error(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue