diff options
| author | Titus Brown <t@idyll.org> | 2010-02-22 15:41:45 -0500 |
|---|---|---|
| committer | Titus Brown <t@idyll.org> | 2010-02-22 15:41:45 -0500 |
| commit | 37c0d4e813dd491ff03f211206c04521f3035397 (patch) | |
| tree | ecb2ab26be790327723c924327e582d8ab4e47d0 /src/distutils2 | |
| parent | e0b63c1c0a47020f1afdf088fdec15b26379a4df (diff) | |
| download | disutils2-37c0d4e813dd491ff03f211206c04521f3035397.tar.gz | |
initialize _CONFIG_VARS when importing from sysconfig backport.
This fixes a problem where _CONFIG_VARS is used uninitialized in test_install.
Diffstat (limited to 'src/distutils2')
| -rw-r--r-- | src/distutils2/tests/test_install.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/distutils2/tests/test_install.py b/src/distutils2/tests/test_install.py index adc67c8..9f82f3b 100644 --- a/src/distutils2/tests/test_install.py +++ b/src/distutils2/tests/test_install.py @@ -13,10 +13,12 @@ try: except ImportError: from distutils2._backport import sysconfig from distutils2._backport.sysconfig import (get_scheme_names, - _CONFIG_VARS, + get_config_vars, _INSTALL_SCHEMES, get_config_var, get_path) + _CONFIG_VARS=get_config_vars() + from distutils2.tests import captured_stdout from distutils2.command.install import install @@ -86,7 +88,7 @@ class InstallTestCase(support.TempdirManager, if sys.version < '2.6': return - # preparing the environement for the test + # preparing the environment for the test self.old_user_base = get_config_var('userbase') self.old_user_site = get_path('purelib', '%s_user' % os.name) self.tmpdir = self.mkdtemp() |
