[Python-checkins] python/dist/src/Lib/test test_os.py,1.28,1.29

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Jan 29 14:29:25 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6194/Lib/test

Modified Files:
	test_os.py 
Log Message:
Revert os.py 1.75, and directly implement update. 
Fixes #1110478 and #1100235.


Index: test_os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_os.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- test_os.py	23 Jan 2005 09:19:20 -0000	1.28
+++ test_os.py	29 Jan 2005 13:29:23 -0000	1.29
@@ -226,6 +226,13 @@
         os.environ.clear()
         os.environ.update(self.__save)
 
+    # Bug 1110478
+    def test_update(self):
+        if os.path.exists("/bin/sh"):
+            os.environ.update(HELLO="World")
+            value = os.popen("/bin/sh -c 'echo $HELLO'").read().strip()
+            self.assertEquals(value, "World")
+
 class WalkTests(unittest.TestCase):
     """Tests for os.walk()."""
 



More information about the Python-checkins mailing list