summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-13 17:42:56 (GMT)
committerGitHub <noreply@github.com>2023-06-13 17:42:56 (GMT)
commitc3a2cbb54d19e86f1ff402f7783d51610c2ff646 (patch)
treea79c6dc4c36c5383536224ff2e06fa5f90e1c6bb /Lib/test/test_import
parent9c51ea5d550dbcf5568b57913b1b453d1f92fd5c (diff)
downloadcpython-c3a2cbb54d19e86f1ff402f7783d51610c2ff646.zip
cpython-c3a2cbb54d19e86f1ff402f7783d51610c2ff646.tar.gz
cpython-c3a2cbb54d19e86f1ff402f7783d51610c2ff646.tar.bz2
[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 b97e14a806477af4225777d215ac38c0d9b845f0) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Lib/test/test_import')
-rw-r--r--Lib/test/test_import/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 227c912..71a50bc 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -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):