File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import builtins
2- import concurrent .interpreters
32import errno
43import glob
54import json
6665 _testmultiphase = None
6766try :
6867 import _interpreters
68+ import concurrent .interpreters
6969except ModuleNotFoundError :
7070 _interpreters = None
71+ concurrent = None
7172try :
7273 import _testinternalcapi
7374except ImportError :
@@ -3408,6 +3409,7 @@ def test_from_modexport(self):
34083409
34093410 self .assertEqual (module .__name__ , modname )
34103411
3412+ @requires_subinterpreters
34113413 def test_from_modexport_gil_used (self ):
34123414 # Test that a module with Py_MOD_GIL_USED (re-)enables the GIL.
34133415 # Do this in a new interpreter to avoid interfering with global state.
@@ -3461,6 +3463,7 @@ def test_from_modexport_create_nonmodule(self):
34613463 put_in_sys_modules = False )
34623464 self .assertIsInstance (module , str )
34633465
3466+ @requires_subinterpreters
34643467 def test_from_modexport_create_nonmodule_gil_used (self ):
34653468 # Test that a module with Py_MOD_GIL_USED (re-)enables the GIL.
34663469 # Do this in a new interpreter to avoid interfering with global state.
You can’t perform that action at this time.
0 commit comments