[Python-checkins] r80904 - python/branches/py3k/Lib/test/test_os.py
victor.stinner
python-checkins at python.org
Fri May 7 02:54:14 CEST 2010
Author: victor.stinner
Date: Fri May 7 02:54:14 2010
New Revision: 80904
Log:
Fix test_os: os.environb doesn't exist on Windows
Modified:
python/branches/py3k/Lib/test/test_os.py
Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py (original)
+++ python/branches/py3k/Lib/test/test_os.py Fri May 7 02:54:14 2010
@@ -369,15 +369,17 @@
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"}
More information about the Python-checkins
mailing list