diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2005-01-29 13:29:23 (GMT) |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2005-01-29 13:29:23 (GMT) |
| commit | 1d11de6dbd247689c508de2ec28f0f3fc35ecabc (patch) | |
| tree | 62a7f160f4a339382f748a8cfdb655522b16f289 /Lib/test/test_os.py | |
| parent | 3069dbb8ec9c287c2ff6b3a1c8bfde83af81c11b (diff) | |
| download | cpython-1d11de6dbd247689c508de2ec28f0f3fc35ecabc.zip cpython-1d11de6dbd247689c508de2ec28f0f3fc35ecabc.tar.gz cpython-1d11de6dbd247689c508de2ec28f0f3fc35ecabc.tar.bz2 | |
Revert os.py 1.75, and directly implement update.
Fixes #1110478 and #1100235.
Diffstat (limited to 'Lib/test/test_os.py')
| -rw-r--r-- | Lib/test/test_os.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 472d13f..cce6926 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -226,6 +226,13 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol): 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().""" |
