aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-07 00:54:14 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-07 00:54:14 +0000
commit208d28cd41ad5cb4bd8665923d486d96232d9a42 (patch)
treeb35ee07e40d051cb33675dacffb9e39645d15540 /Lib
parent8124feb07b130bb39d13f2f3cb6457b185694e41 (diff)
downloadcpython3-208d28cd41ad5cb4bd8665923d486d96232d9a42.tar.gz
Fix test_os: os.environb doesn't exist on Windows
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_os.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 727b00eebf..443d2b9ac1 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -369,15 +369,17 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
def setUp(self):
self.__save = dict(os.environ)
- self.__saveb = dict(os.environb)
+ if os.name not in ('os2', 'nt'):
+ self.__saveb = dict(os.environb)
for key, value in self._reference().items():
os.environ[key] = value
def tearDown(self):
os.environ.clear()
os.environ.update(self.__save)
- os.environb.clear()
- os.environb.update(self.__saveb)
+ if os.name not in ('os2', 'nt'):
+ os.environb.clear()
+ os.environb.update(self.__saveb)
def _reference(self):
return {"KEY1":"VALUE1", "KEY2":"VALUE2", "KEY3":"VALUE3"}