Commit f52940e0 authored by Fred Drake's avatar Fred Drake

- remove double import

- use constant from errno module instead of magic number
parent 892525e7
......@@ -28,8 +28,6 @@ try:
from ZODB.tests.StorageTestBase import removefs
except ImportError:
# for compatibility with Zope 2.5 &c.
import errno
def removefs(base):
"""Remove all files created by FileStorage with path base."""
for ext in '', '.old', '.tmp', '.lock', '.index', '.pack':
......@@ -105,7 +103,7 @@ class StartTests(unittest.TestCase):
try:
_pid, status = os.waitpid(pid, flag)
except os.error, err:
if err[0] == 10:
if err[0] == errno.ECHILD:
continue
print err
else:
......
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