mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-105603: Change the PyInterpreterConfig.own gil Field (gh-105620)
We are changing it to be more flexible that a strict bool can be for possible future expanded used cases.
This commit is contained in:
parent
abfbab6415
commit
b97e14a806
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