From 90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf Mon Sep 17 00:00:00 2001 From: Lumír 'Frenzy' Balhar Date: Fri, 23 Apr 2021 14:02:41 +0200 Subject: 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 --- Lib/distutils/tests/test_build_ext.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/distutils/tests/test_build_ext.py') diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 90f7bb06691..8e7364d2a2c 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -35,6 +35,7 @@ class BuildExtTestCase(TempdirManager, site.USER_BASE = self.mkdtemp() from distutils.command import build_ext build_ext.USER_BASE = site.USER_BASE + self.old_config_vars = dict(sysconfig._config_vars) # bpo-30132: On Windows, a .pdb file may be created in the current # working directory. Create a temporary working directory to cleanup @@ -48,6 +49,8 @@ class BuildExtTestCase(TempdirManager, site.USER_BASE = self.old_user_base from distutils.command import build_ext build_ext.USER_BASE = self.old_user_base + sysconfig._config_vars.clear() + sysconfig._config_vars.update(self.old_config_vars) super(BuildExtTestCase, self).tearDown() def build_ext(self, *args, **kwargs): -- cgit v1.2.3