File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2087,6 +2087,7 @@ fn verify_distribution_behavior(dist_path: &Path) -> Result<Vec<String>> {
2087
2087
. stdout_to_stderr ( )
2088
2088
. unchecked ( )
2089
2089
. env ( "TARGET_TRIPLE" , & python_json. target_triple )
2090
+ . env ( "BUILD_OPTIONS" , & python_json. build_options )
2090
2091
. run ( ) ?;
2091
2092
2092
2093
if !output. status . success ( ) {
Original file line number Diff line number Diff line change @@ -141,6 +141,20 @@ def test_ssl(self):
141
141
142
142
ssl .create_default_context ()
143
143
144
+ @unittest .skipIf (
145
+ sys .version_info [:2 ] < (3 , 13 ),
146
+ "Free-threaded builds are only available in 3.13+" ,
147
+ )
148
+ def test_gil_disabled (self ):
149
+ import sysconfig
150
+
151
+ if "freethreaded" in os .environ .get ("BUILD_OPTIONS" , "" ).split ("+" ):
152
+ wanted = 1
153
+ else :
154
+ wanted = 0
155
+
156
+ self .assertEqual (sysconfig .get_config_var ("Py_GIL_DISABLED" ), wanted )
157
+
144
158
@unittest .skipIf ("TCL_LIBRARY" not in os .environ , "TCL_LIBRARY not set" )
145
159
@unittest .skipIf ("DISPLAY" not in os .environ , "DISPLAY not set" )
146
160
def test_tkinter (self ):
You can’t perform that action at this time.
0 commit comments