From 22de4ce498b656063e236350e8404981c13e1cd8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 9 Apr 2019 19:54:10 +0200 Subject: bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751) Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler(). --- Lib/distutils/tests/test_sysconfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py index 71754dd..9e2aeb8 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) -- cgit v0.12