summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-03-11 12:48:04 +0000
committerTarek Ziadé <ziade.tarek@gmail.com>2009-03-11 12:48:04 +0000
commit61585c260cb46b5918e1c3a3771ed17abec308f5 (patch)
tree50814d73429d411ee05afb22e5d3537529091b66
parent6c4cff0f32c574454114d4cff6bd5f6d2870c04d (diff)
downloadcpython-git-61585c260cb46b5918e1c3a3771ed17abec308f5.tar.gz
Issue #5472: Fixed distutils.test_util tear down
-rw-r--r--Lib/distutils/tests/test_util.py2
-rw-r--r--Misc/NEWS3
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_util.py b/Lib/distutils/tests/test_util.py
index ca586268a3..67474025d3 100644
--- a/Lib/distutils/tests/test_util.py
+++ b/Lib/distutils/tests/test_util.py
@@ -53,6 +53,8 @@ class utilTestCase(unittest.TestCase):
os.path.splitdrive = self.splitdrive
if self.uname is not None:
os.uname = self.uname
+ else:
+ del os.uname
def _set_uname(self, uname):
self._uname = uname
diff --git a/Misc/NEWS b/Misc/NEWS
index 5af7df7da0..c9f77b9b15 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -171,6 +171,9 @@ Core and Builtins
Library
-------
+- Issue #5472: Fixed distutils.test_util tear down. Original patch by
+ Tim Golden.
+
- collections.deque() objects now have a read-only attribute called maxlen.
- Issue #2638: Show a window constructed with tkSimpleDialog.Dialog only after