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,6 +142,8 @@ class FileStorageTests(GenericTests): ...@@ -142,6 +142,8 @@ 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)
if hasattr(os, 'waitpid'):
# Not in Windows Python until 2.3
for pid in self._pids: for pid in self._pids:
os.waitpid(pid, 0) os.waitpid(pid, 0)
......
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