[issue5472] distutils.test_util fails to restore os.uname
Tim Golden
report at bugs.python.org
Wed Mar 11 00:16:38 CET 2009
New submission from Tim Golden <mail at timgolden.me.uk>:
lib\distutils\tests\test_util.py, run as part of the full testsuite,
creates a stub os.uname on an OS which doesn't support it natively.
However, it fails to restore it correctly -- ie fails to delete the
attribute. As a result, test_platform and test_pep352 fail when run
as a part of regrtest, since they rely on os.uname raising an
AttributeError on, eg, Windows.
Patch attached against r70302 of lib\distutils\tests\test_util.py
----------
files: test_util.patch
keywords: patch
messages: 83449
nosy: tim.golden
severity: normal
status: open
title: distutils.test_util fails to restore os.uname
Added file: http://bugs.python.org/file13299/test_util.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5472>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_util.patch
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20090310/be729a4e/attachment.txt>
More information about the Python-bugs-list
mailing list