]> granicus.if.org Git - python/commitdiff
Issue #5472: Fixed distutils.test_util tear down
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 11 Mar 2009 12:48:04 +0000 (12:48 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 11 Mar 2009 12:48:04 +0000 (12:48 +0000)
Lib/distutils/tests/test_util.py
Misc/NEWS

index ca586268a30fc4c50b092b368ac3b74e8b86ad74..67474025d3a3eaf1d48bfeb1b2da24776678a053 100644 (file)
@@ -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
index 5af7df7da0c95a4088bcc1d54a45b5617f4c4235..c9f77b9b158a76bb955c86a54a633e5afa58e727 100644 (file)
--- 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