Commit 8785d58f authored by Barry Warsaw's avatar Barry Warsaw

FileStorageTests.tearDown(): Conditionalize the use of waitpid since

Windows doesn't have it until Python 2.3
parent ccacb031
...@@ -142,8 +142,10 @@ class FileStorageTests(GenericTests): ...@@ -142,8 +142,10 @@ class FileStorageTests(GenericTests):
self._storage.close() self._storage.close()
for server in self._servers: for server in self._servers:
forker.shutdown_zeo_server(server) forker.shutdown_zeo_server(server)
for pid in self._pids: if hasattr(os, 'waitpid'):
os.waitpid(pid, 0) # Not in Windows Python until 2.3
for pid in self._pids:
os.waitpid(pid, 0)
def getConfig(self): def getConfig(self):
filename = self.__fs_base = tempfile.mktemp() filename = self.__fs_base = tempfile.mktemp()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment