[Zodb-checkins] CVS: ZODB3/ZEO/tests - testZEO.py:1.58

Barry Warsaw barry@wooz.org
Fri, 13 Dec 2002 14:41:34 -0500


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv15287

Modified Files:
	testZEO.py 
Log Message:
FileStorageTests.tearDown(): Conditionalize the use of waitpid since
Windows doesn't have it until Python 2.3


=== ZODB3/ZEO/tests/testZEO.py 1.57 => 1.58 ===
--- ZODB3/ZEO/tests/testZEO.py:1.57	Thu Dec 12 14:08:05 2002
+++ ZODB3/ZEO/tests/testZEO.py	Fri Dec 13 14:41:33 2002
@@ -142,8 +142,10 @@
         self._storage.close()
         for server in self._servers:
             forker.shutdown_zeo_server(server)
-        for pid in self._pids:
-            os.waitpid(pid, 0)
+        if hasattr(os, 'waitpid'):
+            # Not in Windows Python until 2.3
+            for pid in self._pids:
+                os.waitpid(pid, 0)
 
     def getConfig(self):
         filename = self.__fs_base = tempfile.mktemp()