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>> {
20872087 . stdout_to_stderr ( )
20882088 . unchecked ( )
20892089 . env ( "TARGET_TRIPLE" , & python_json. target_triple )
2090+ . env ( "BUILD_OPTIONS" , & python_json. build_options )
20902091 . run ( ) ?;
20912092
20922093 if !output. status . success ( ) {
Original file line number Diff line number Diff line change @@ -141,6 +141,20 @@ def test_ssl(self):
141141
142142 ssl .create_default_context ()
143143
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+
144158 @unittest .skipIf ("TCL_LIBRARY" not in os .environ , "TCL_LIBRARY not set" )
145159 @unittest .skipIf ("DISPLAY" not in os .environ , "DISPLAY not set" )
146160 def test_tkinter (self ):
You can’t perform that action at this time.
0 commit comments