summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_install.py
diff options
context:
space:
mode:
authorLumír 'Frenzy' Balhar <frenzy.madness@gmail.com>2021-04-23 12:02:41 (GMT)
committerGitHub <noreply@github.com>2021-04-23 12:02:41 (GMT)
commit90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf (patch)
tree5279da33ebadd26e8040b394929cce64f861acab /Lib/distutils/tests/test_install.py
parentb9ad88be0304136c3fe5959c65a5d2c75490cd80 (diff)
downloadcpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.zip
cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.tar.gz
cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.tar.bz2
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
Diffstat (limited to 'Lib/distutils/tests/test_install.py')
-rw-r--r--Lib/distutils/tests/test_install.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_install.py b/Lib/distutils/tests/test_install.py
index 21a7b7c..0632024 100644
--- a/Lib/distutils/tests/test_install.py
+++ b/Lib/distutils/tests/test_install.py
@@ -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