@@ -202,22 +202,21 @@ def test_sysconfig_module(self):
202
202
'LDFLAGS'
203
203
)
204
204
205
+ # On macOS, binary installers support extension module building on
206
+ # various levels of the operating system with differing Xcode
207
+ # configurations, requiring customization of some of the
208
+ # compiler configuration directives to suit the environment on
209
+ # the installed machine. Some of these customizations may require
210
+ # running external programs and are thus deferred until needed by
211
+ # the first extension module build. Only
212
+ # the Distutils version of sysconfig is used for extension module
213
+ # builds, which happens earlier in the Distutils tests. This may
214
+ # cause the following tests to fail since no tests have caused
215
+ # the global version of sysconfig to call the customization yet.
216
+ # The solution for now is to simply skip this test in this case.
217
+ # The longer-term solution is to only have one version of sysconfig.
205
218
@pytest .mark .skipif ("sysconfig.get_config_var('CUSTOMIZED_OSX_COMPILER')" )
206
219
def test_sysconfig_compiler_vars (self ):
207
- # On OS X, binary installers support extension module building on
208
- # various levels of the operating system with differing Xcode
209
- # configurations. This requires customization of some of the
210
- # compiler configuration directives to suit the environment on
211
- # the installed machine. Some of these customizations may require
212
- # running external programs and, so, are deferred until needed by
213
- # the first extension module build. With Python 3.3, only
214
- # the Distutils version of sysconfig is used for extension module
215
- # builds, which happens earlier in the Distutils tests. This may
216
- # cause the following tests to fail since no tests have caused
217
- # the global version of sysconfig to call the customization yet.
218
- # The solution for now is to simply skip this test in this case.
219
- # The longer-term solution is to only have one version of sysconfig.
220
-
221
220
import sysconfig as global_sysconfig
222
221
223
222
if sysconfig .get_config_var ('CUSTOMIZED_OSX_COMPILER' ):
0 commit comments