Skip to content

Commit

Permalink
gh-104469: Convert _testcapi/exceptions to use AC (gh-104502)
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed May 21, 2023
1 parent 60993ba commit 2e91c7e
Show file tree
Hide file tree
Showing 4 changed files with 533 additions and 99 deletions.
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def check_fatal_error(self, code, expected, not_expected=()):
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]+)\)$',
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_faulthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def check_fatal_error_func(self, release_gil):
""",
2,
'xyz',
func='test_fatal_error',
func='_testcapi_fatal_error_impl',
py_fatal_error=True)

def test_fatal_error(self):
Expand Down
Loading

0 comments on commit 2e91c7e

Please sign in to comment.