[issue5810] test_distutils fails - sysconfig._config_vars is None
Sridhar Ratnakumar
report at bugs.python.org
Wed Apr 22 03:00:42 CEST 2009
New submission from Sridhar Ratnakumar <sridharr at activestate.com>:
Sorry, but the commit r69598 (due to Issue4524) has a problem. On
Windows and Linux (although not on MacOSX), test_distutils fails:
test_distutils
test test_distutils failed -- Traceback (most recent call last):
File "C:\Python26\lib\distutils\tests\test_build_scripts.py", line 93,
in test_version_int
old = sysconfig._config_vars.get('VERSION')
AttributeError: 'NoneType' object has no attribute 'get'
Using the documented API (`sysconfig.get_config_vars()`) instead of an
uninitialized private variable (`sysconfig._config_vars.get('VERSION')`)
may fix it.
The following session is from my a Windows machine:
>>> from distutils import sysconfig
>>> print sysconfig._config_vars
None
>>> s = sysconfig.get_config_vars()
>>> s
{'EXE': '.exe', ...}
>>> sysconfig._config_vars
{'EXE': '.exe', ...}
>>>
We face this failure while testing the ActivePython builds based on
Python 2.6.2.
----------
assignee: tarek
components: Distutils
messages: 86266
nosy: srid, tarek, trentm
severity: normal
status: open
title: test_distutils fails - sysconfig._config_vars is None
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5810>
_______________________________________
More information about the Python-bugs-list
mailing list