@@ -1401,19 +1401,29 @@ def test_configured_settings(self):
1401
1401
DAEMON_THREADS = 1 << 11
1402
1402
FORK = 1 << 15
1403
1403
EXEC = 1 << 16
1404
-
1405
- features = ['obmalloc' , 'fork' , 'exec' , 'threads' , 'daemon_threads' ,
1406
- 'extensions' ]
1404
+ ALL_FLAGS = (OBMALLOC | FORK | EXEC | THREADS | DAEMON_THREADS
1405
+ | EXTENSIONS );
1406
+
1407
+ features = [
1408
+ 'obmalloc' ,
1409
+ 'fork' ,
1410
+ 'exec' ,
1411
+ 'threads' ,
1412
+ 'daemon_threads' ,
1413
+ 'extensions' ,
1414
+ 'own_gil' ,
1415
+ ]
1407
1416
kwlist = [f'allow_{ n } ' for n in features ]
1408
1417
kwlist [0 ] = 'use_main_obmalloc'
1409
- kwlist [- 1 ] = 'check_multi_interp_extensions'
1418
+ kwlist [- 2 ] = 'check_multi_interp_extensions'
1419
+ kwlist [- 1 ] = 'own_gil'
1410
1420
1411
1421
# expected to work
1412
1422
for config , expected in {
1413
- (True , True , True , True , True , True ):
1414
- OBMALLOC | FORK | EXEC | THREADS | DAEMON_THREADS | EXTENSIONS ,
1415
- (True , False , False , False , False , False ): OBMALLOC ,
1416
- ( False , False , False , True , False , True ): THREADS | EXTENSIONS ,
1423
+ (True , True , True , True , True , True , True ): ALL_FLAGS ,
1424
+ ( True , False , False , False , False , False , False ): OBMALLOC ,
1425
+ (False , False , False , True , False , True , False ):
1426
+ THREADS | EXTENSIONS ,
1417
1427
}.items ():
1418
1428
kwargs = dict (zip (kwlist , config ))
1419
1429
expected = {
@@ -1437,7 +1447,7 @@ def test_configured_settings(self):
1437
1447
1438
1448
# expected to fail
1439
1449
for config in [
1440
- (False , False , False , False , False , False ),
1450
+ (False , False , False , False , False , False , False ),
1441
1451
]:
1442
1452
kwargs = dict (zip (kwlist , config ))
1443
1453
with self .subTest (config ):
@@ -1473,6 +1483,7 @@ def test_overridden_setting_extensions_subinterp_check(self):
1473
1483
'allow_exec' : True ,
1474
1484
'allow_threads' : True ,
1475
1485
'allow_daemon_threads' : True ,
1486
+ 'own_gil' : False ,
1476
1487
}
1477
1488
1478
1489
def check (enabled , override ):
0 commit comments