Skip to content

Commit 5598256

Browse files
committed
Move comment nearer the skip directive. Update wording.
1 parent 6b6633a commit 5598256

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

distutils/tests/test_sysconfig.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,22 +202,21 @@ def test_sysconfig_module(self):
202202
'LDFLAGS'
203203
)
204204

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.
205218
@pytest.mark.skipif("sysconfig.get_config_var('CUSTOMIZED_OSX_COMPILER')")
206219
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-
221220
import sysconfig as global_sysconfig
222221

223222
if sysconfig.get_config_var('CUSTOMIZED_OSX_COMPILER'):

0 commit comments

Comments
 (0)