mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-41282: (PEP 632) Deprecate distutils.sysconfig (partial implementation of the PEP) (GH-23142)
This change: * merges `distutils.sysconfig` into `sysconfig` while keeping the original functionality and * marks `distutils.sysconfig` as deprecated https://bugs.python.org/issue41282
This commit is contained in:
parent
b9ad88be03
commit
90d02e5e63
15 changed files with 209 additions and 443 deletions
|
@ -29,6 +29,15 @@ class InstallTestCase(support.TempdirManager,
|
|||
support.LoggingSilencer,
|
||||
unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self._backup_config_vars = dict(sysconfig._config_vars)
|
||||
|
||||
def tearDown(self):
|
||||
super().tearDown()
|
||||
sysconfig._config_vars.clear()
|
||||
sysconfig._config_vars.update(self._backup_config_vars)
|
||||
|
||||
def test_home_installation_scheme(self):
|
||||
# This ensure two things:
|
||||
# - that --home generates the desired set of directory names
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue