mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
bc390dd935
commit
5fdd49dc65
3 changed files with 1 additions and 39 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue