gh-104469: Convert _testcapi/exceptions to use AC (gh-104502)

This commit is contained in:
Dong-hee Na 2023-05-21 18:39:45 +09:00 committed by GitHub
parent 60993ba8b4
commit 2e91c7e626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 536 additions and 102 deletions

View file

@ -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]+)\)$',

View file

@ -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):