From 6f58b6b50445be3cbebf592680bab928c4311a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Wed, 2 Mar 2011 00:31:51 +0000 Subject: [PATCH] Remove last use of distutils.sysconfig from the stdlib (#11364). Apart from distutils itself, the stdlib has now officially switched to the new top-level sysconfig module. Patch greenlighted by Ned Deily. --- Lib/test/test_osx_env.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py index 8b3df3783bd..24ec2b4403d 100644 --- a/Lib/test/test_osx_env.py +++ b/Lib/test/test_osx_env.py @@ -5,6 +5,7 @@ from test.support import EnvironmentVarGuard, run_unittest import subprocess import sys +import sysconfig import unittest class OSXEnvironmentVariableTestCase(unittest.TestCase): @@ -27,8 +28,6 @@ def test_pythonexecutable_sets_sys_executable(self): self._check_sys('PYTHONEXECUTABLE', '==', 'sys.executable') def test_main(): - from distutils import sysconfig - if sys.platform == 'darwin' and sysconfig.get_config_var('WITH_NEXT_FRAMEWORK'): run_unittest(OSXEnvironmentVariableTestCase)