Skip to content

Commit 0e07d61

Browse files
committed
Skip test_py_config_isoloated_per_interpreter() on Free Threaded build
1 parent 27ebb23 commit 0e07d61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_capi/test_misc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,6 +2141,8 @@ async def foo(arg): return await arg # Py 3.5
21412141
self.assertEqual(ret, 0)
21422142
self.assertEqual(pickle.load(f), {'a': '123x', 'b': '123'})
21432143

2144+
# _testcapi cannot be imported in a subinterpreter on a Free Threaded build
2145+
@support.requires_gil_enabled()
21442146
def test_py_config_isoloated_per_interpreter(self):
21452147
# A config change in one interpreter must not leak to out to others.
21462148
#

0 commit comments

Comments
 (0)