diff options
Diffstat (limited to 'tests/test_cygwinccompiler.py')
| -rw-r--r-- | tests/test_cygwinccompiler.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_cygwinccompiler.py b/tests/test_cygwinccompiler.py index 98f0f08e..4b95dfa3 100644 --- a/tests/test_cygwinccompiler.py +++ b/tests/test_cygwinccompiler.py @@ -4,6 +4,7 @@ import sys import os import subprocess import warnings +import sysconfig from test.support import check_warnings from test.support import captured_stdout @@ -23,13 +24,11 @@ class CygwinCCompilerTestCase(support.TempdirManager, super(CygwinCCompilerTestCase, self).setUp() self.version = sys.version self.python_h = os.path.join(self.mkdtemp(), 'python.h') - from distutils import sysconfig self.old_get_config_h_filename = sysconfig.get_config_h_filename sysconfig.get_config_h_filename = self._get_config_h_filename def tearDown(self): sys.version = self.version - from distutils import sysconfig sysconfig.get_config_h_filename = self.old_get_config_h_filename super(CygwinCCompilerTestCase, self).tearDown() |
