mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
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.
This commit is contained in:
parent
ec78522424
commit
6f58b6b504
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user