diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-05-05 15:59:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 15:59:20 -0600 |
commit | f3e7eb48f86057919c347f56dabf417acfd55845 (patch) | |
tree | 1b4c1a4a939f6609ddf17e842abf8490c582a037 /Lib/test/test_embed.py | |
parent | 66558d2a16ee42afc0e2c02e6a90bfd62dcb67f6 (diff) | |
download | cpython-git-f3e7eb48f86057919c347f56dabf417acfd55845.tar.gz |
gh-99113: Add PyInterpreterConfig.own_gil (gh-104204)
We also add PyInterpreterState.ceval.own_gil to record if the interpreter actually has its own GIL.
Note that for now we don't actually respect own_gil; all interpreters still share the one GIL. However, PyInterpreterState.ceval.own_gil does reflect PyInterpreterConfig.own_gil. That lie is a temporary one that we will fix when the GIL really becomes per-interpreter.
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r-- | Lib/test/test_embed.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index c9691bbf30..582392ecdd 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -1666,6 +1666,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): # All optional features should be enabled. 'feature_flags': OBMALLOC | FORK | EXEC | THREADS | DAEMON_THREADS, + 'own_gil': True, } out, err = self.run_embedded_interpreter( 'test_init_main_interpreter_settings', |