[Zope-Checkins] CVS: ZODB3/zdaemon/tests - testzdoptions.py:1.8

Fred L. Drake, Jr. fred@zope.com
Tue, 18 Feb 2003 10:05:19 -0500


Update of /cvs-repository/ZODB3/zdaemon/tests
In directory cvs.zope.org:/tmp/cvs-serv4092

Modified Files:
	testzdoptions.py 
Log Message:
Python 2.1.x isn't happy with an instance being passed to
dict.update(), so take a more portable approach.


=== ZODB3/zdaemon/tests/testzdoptions.py 1.7 => 1.8 ===
--- ZODB3/zdaemon/tests/testzdoptions.py:1.7	Wed Feb 12 12:13:01 2003
+++ ZODB3/zdaemon/tests/testzdoptions.py	Tue Feb 18 10:05:18 2003
@@ -180,7 +180,8 @@
     def setUp(self):
         self._oldenv = os.environ
         env = {}
-        env.update(os.environ)
+        for k, v in os.environ.items():
+            env[k] = v
         os.environ = env
 
     def tearDown(self):