mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
[3.12] gh-105603: Change the PyInterpreterConfig.own gil Field (gh-105620) (gh-105731)
We are changing it to be more flexible that a strict bool can be for possible future expanded used cases.
(cherry picked from commit b97e14a806
)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
9c51ea5d55
commit
c3a2cbb54d
6 changed files with 40 additions and 16 deletions
|
@ -1640,9 +1640,10 @@ class SubinterpImportTests(unittest.TestCase):
|
|||
)
|
||||
ISOLATED = dict(
|
||||
use_main_obmalloc=False,
|
||||
own_gil=True,
|
||||
gil=2,
|
||||
)
|
||||
NOT_ISOLATED = {k: not v for k, v in ISOLATED.items()}
|
||||
NOT_ISOLATED['gil'] = 1
|
||||
|
||||
@unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
|
||||
def pipe(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue