This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils.test_util fails to restore os.uname; causes test_platform to fail
Type: Stage:
Components: Distutils Versions: Python 3.1, Python 2.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: tarek, tim.golden
Priority: normal Keywords: patch

Created on 2009-03-10 23:16 by tim.golden, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_util.patch tim.golden, 2009-03-10 23:16
Messages (4)
msg83449 - (view) Author: Tim Golden (tim.golden) * (Python committer) Date: 2009-03-10 23:16
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
msg83460 - (view) Author: Tim Golden (tim.golden) * (Python committer) Date: 2009-03-11 08:59
Adding Tarek to nosy list as he added the code earlier this month
msg83461 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-03-11 09:14
Thanks for the patch, I'll apply it later today
msg83466 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-03-11 12:55
done in r70308, r70310. Thx.
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49722
2009-03-11 12:55:25tareksetstatus: open -> closed

messages: + msg83466
2009-03-11 09:14:50tareksetassignee: tarek
messages: + msg83461
components: + Distutils
versions: + Python 3.1, Python 2.7
2009-03-11 08:59:27tim.goldensetnosy: + tarek

messages: + msg83460
title: distutils.test_util fails to restore os.uname -> distutils.test_util fails to restore os.uname; causes test_platform to fail
2009-03-10 23:16:37tim.goldencreate