summaryrefslogtreecommitdiff
path: root/tests/test_cygwinccompiler.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-01-29 11:41:03 +0000
committerTarek Ziadé <ziade.tarek@gmail.com>2010-01-29 11:41:03 +0000
commit43788cbefa5bf8f9c6fde80b8a25a4c5a35505ef (patch)
tree6027766073a5333986ba3cc9b351ef2eb415098f /tests/test_cygwinccompiler.py
parent039104435cf43e73cc6d460637b95aac8ed4ef23 (diff)
downloadpython-setuptools-git-43788cbefa5bf8f9c6fde80b8a25a4c5a35505ef.tar.gz
Merged revisions 77704,77752 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77704 | tarek.ziade | 2010-01-23 10:23:15 +0100 (Sat, 23 Jan 2010) | 1 line taking sysconfig out of distutils ........ r77752 | tarek.ziade | 2010-01-26 00:19:56 +0100 (Tue, 26 Jan 2010) | 1 line switched the call order so this call works without suffering from issue #7774 ........
Diffstat (limited to 'tests/test_cygwinccompiler.py')
-rw-r--r--tests/test_cygwinccompiler.py3
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()