summaryrefslogtreecommitdiff
path: root/Lib/test/test_osx_env.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-02 00:31:51 +0000
committerÉric Araujo <merwok@netwok.org>2011-03-02 00:31:51 +0000
commitb651bb1fb81baec9299c9c6844d04306c5673b74 (patch)
tree1cfff53c65094bee5dee825d47eba1b5b4288bd5 /Lib/test/test_osx_env.py
parent506482cce4a033d46aa95f1db934d7257990ded0 (diff)
downloadcpython-b651bb1fb81baec9299c9c6844d04306c5673b74.tar.gz
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.
Diffstat (limited to 'Lib/test/test_osx_env.py')
-rw-r--r--Lib/test/test_osx_env.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py
index 8b3df3783b..24ec2b4403 100644
--- a/Lib/test/test_osx_env.py
+++ b/Lib/test/test_osx_env.py
@@ -5,6 +5,7 @@ Test suite for OS X interpreter environment variables.
from test.support import EnvironmentVarGuard, run_unittest
import subprocess
import sys
+import sysconfig
import unittest
class OSXEnvironmentVariableTestCase(unittest.TestCase):
@@ -27,8 +28,6 @@ class OSXEnvironmentVariableTestCase(unittest.TestCase):
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)