summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorneonene <53406459+neonene@users.noreply.github.com>2024-06-13 18:05:03 (GMT)
committerGitHub <noreply@github.com>2024-06-13 18:05:03 (GMT)
commit50a389565aa0b480792ed06a2ab56fb5a72fc2d8 (patch)
tree7a0d815edb80d7d3e64110dd88738b14648c7dd5 /Lib/test/support
parentc2d810b6d4deeea530648a8d0983e3a2adf6c942 (diff)
downloadcpython-50a389565aa0b480792ed06a2ab56fb5a72fc2d8.zip
cpython-50a389565aa0b480792ed06a2ab56fb5a72fc2d8.tar.gz
cpython-50a389565aa0b480792ed06a2ab56fb5a72fc2d8.tar.bz2
gh-117398: Add datetime C-API type check test for subinterpreters (gh-119604)
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 9e6100d..adc6362 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1808,7 +1808,7 @@ def run_in_subinterp_with_config(code, *, own_gil=None, **config):
config['gil'] = 'shared'
elif gil == 2:
config['gil'] = 'own'
- else:
+ elif not isinstance(gil, str):
raise NotImplementedError(gil)
config = types.SimpleNamespace(**config)
return _testinternalcapi.run_in_subinterp_with_config(code, config)