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