diff options
author | Éric Araujo <merwok@netwok.org> | 2011-03-02 00:31:51 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-03-02 00:31:51 (GMT) |
commit | 6f58b6b50445be3cbebf592680bab928c4311a89 (patch) | |
tree | fc6de13e85bfb0a4a8104273ee85da00c79dfecb /Lib/test | |
parent | ec78522424a610e364b8a61da00496833fad70a8 (diff) | |
download | cpython-6f58b6b50445be3cbebf592680bab928c4311a89.zip cpython-6f58b6b50445be3cbebf592680bab928c4311a89.tar.gz cpython-6f58b6b50445be3cbebf592680bab928c4311a89.tar.bz2 |
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')
-rw-r--r-- | Lib/test/test_osx_env.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_osx_env.py b/Lib/test/test_osx_env.py index 8b3df37..24ec2b4 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) |