aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/packaging/tests/test_command_build_ext.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-19 15:12:23 +0200
committerÉric Araujo <merwok@netwok.org>2011-09-19 15:12:23 +0200
commit505f0ebf8839cc0a44d06b2cef96a20e5e693e74 (patch)
tree18108900184fe11ad7b036bf4bd2b06de5302b75 /Lib/packaging/tests/test_command_build_ext.py
parentc1b7e7f8bbcae936a5e75277e9e86d9ebec5469f (diff)
downloadcpython-505f0ebf8839cc0a44d06b2cef96a20e5e693e74.tar.gz
cpython-505f0ebf8839cc0a44d06b2cef96a20e5e693e74.zip
Final bag of small changes coming from distutils2.
- minor cleanup in Metadata - trigger creation of the sysconfig._CONFIG_VARS dict - home_page is used over home-page: it’s not a compound word, it’s an escaped space Distutils2 is now synchronized with Packaging.
Diffstat (limited to 'Lib/packaging/tests/test_command_build_ext.py')
-rw-r--r--Lib/packaging/tests/test_command_build_ext.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py
index c84631c2a81..2926c37e875 100644
--- a/Lib/packaging/tests/test_command_build_ext.py
+++ b/Lib/packaging/tests/test_command_build_ext.py
@@ -4,14 +4,13 @@ import site
import sysconfig
import textwrap
from io import StringIO
-from sysconfig import _CONFIG_VARS
from packaging.dist import Distribution
from packaging.errors import (UnknownFileError, CompileError,
PackagingPlatformError)
from packaging.command.build_ext import build_ext
from packaging.compiler.extension import Extension
-from test.script_helper import assert_python_ok
+from test.script_helper import assert_python_ok
from packaging.tests import support, unittest, verbose
@@ -75,16 +74,16 @@ class BuildExtTestCase(support.TempdirManager,
sys.platform = 'sunos' # fooling finalize_options
- old_var = _CONFIG_VARS.get('Py_ENABLE_SHARED')
- _CONFIG_VARS['Py_ENABLE_SHARED'] = 1
+ old_var = sysconfig.get_config_var('Py_ENABLE_SHARED')
+ sysconfig._CONFIG_VARS['Py_ENABLE_SHARED'] = 1
try:
cmd.ensure_finalized()
finally:
sys.platform = old
if old_var is None:
- del _CONFIG_VARS['Py_ENABLE_SHARED']
+ del sysconfig._CONFIG_VARS['Py_ENABLE_SHARED']
else:
- _CONFIG_VARS['Py_ENABLE_SHARED'] = old_var
+ sysconfig._CONFIG_VARS['Py_ENABLE_SHARED'] = old_var
# make sure we get some library dirs under solaris
self.assertGreater(len(cmd.library_dirs), 0)