From: Victor Stinner Date: Tue, 9 Apr 2019 17:54:10 +0000 (+0200) Subject: bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751) X-Git-Tag: v2.7.17rc1~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22de4ce498b656063e236350e8404981c13e1cd8;p=thirdparty%2FPython%2Fcpython.git bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751) Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler(). --- diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py index 71754ddba17f..9e2aeb833bfd 100644 --- a/Lib/distutils/tests/test_sysconfig.py +++ b/Lib/distutils/tests/test_sysconfig.py @@ -73,6 +73,9 @@ class SysconfigTestCase(support.EnvironGuard, comp = compiler() old_vars = dict(sysconfig._config_vars) try: + # On macOS, disable _osx_support.customize_compiler() + sysconfig._config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True' + for key, value in sysconfig_vars.items(): sysconfig._config_vars[key] = value sysconfig.customize_compiler(comp)