mirror of
https://github.com/python/cpython.git
synced 2025-11-02 06:31:29 +00:00
gh-134144: Fix use-after-free in zapthreads() (#134145)
This commit is contained in:
parent
0a160bf14c
commit
f2de1e6861
4 changed files with 41 additions and 6 deletions
|
|
@ -1452,6 +1452,14 @@ def test_destroy(self):
|
|||
self.assertFalse(
|
||||
self.interp_exists(interpid))
|
||||
|
||||
with self.subTest('basic C-API'):
|
||||
interpid = _testinternalcapi.create_interpreter()
|
||||
self.assertTrue(
|
||||
self.interp_exists(interpid))
|
||||
_testinternalcapi.destroy_interpreter(interpid, basic=True)
|
||||
self.assertFalse(
|
||||
self.interp_exists(interpid))
|
||||
|
||||
def test_get_config(self):
|
||||
# This test overlaps with
|
||||
# test.test_capi.test_misc.InterpreterConfigTests.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue