gh-99377: Revert audit events for thread state creation and free, because the GIL is not properly held at these times (GH-99543)

This commit is contained in:
Steve Dower 2022-11-17 00:24:16 +00:00 committed by GitHub
parent bc390dd935
commit 5fdd49dc65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 39 deletions

View file

@ -197,19 +197,11 @@ class AuditTest(unittest.TestCase):
actual = [(ev[0], ev[2]) for ev in events]
expected = [
("_thread.start_new_thread", "(<test_func>, (), None)"),
("cpython.PyThreadState_New", "(2,)"),
("test.test_func", "()"),
("cpython.PyThreadState_Clear", "(2,)"),
]
self.assertEqual(actual, expected)
def test_threading_abort(self):
# Ensures that aborting PyThreadState_New raises the correct exception
returncode, events, stderr = self.run_python("test_threading_abort")
if returncode:
self.fail(stderr)
def test_wmi_exec_query(self):
import_helper.import_module("_wmi")