We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f3bc4 commit 31f36deCopy full SHA for 31f36de
Lib/test/test_generators.py
@@ -285,7 +285,11 @@ def f(): yield
285
evil_stacksize = int(_testcapi.INT_MAX / ps - fss - co_nlocalsplus)
286
287
evil = c.__replace__(co_stacksize=evil_stacksize - 1)
288
- evil_gi = types.FunctionType(evil, {})()
+
289
+ if support.Py_GIL_DISABLED:
290
+ self.skipTest("segmentation fault on free-threaded builds")
291
+ # the following crashes on free-threaded builds for now
292
+ evil_gi_func = types.FunctionType(evil, {})()
293
message = re.escape("size exceeds INT_MAX")
294
self.assertRaisesRegex(OverflowError, message, evil_gi.__sizeof__)
295
0 commit comments