[Zodb-checkins] CVS: Zope/lib/python/ZEO/tests - testStart.py:1.19

Fred L. Drake, Jr. fred@zope.com
Mon, 10 Feb 2003 12:47:23 -0500


Update of /cvs-repository/Zope/lib/python/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv652

Modified Files:
	testStart.py 
Log Message:
- remove double import
- use constant from errno module instead of magic number


=== Zope/lib/python/ZEO/tests/testStart.py 1.18 => 1.19 ===
--- Zope/lib/python/ZEO/tests/testStart.py:1.18	Mon Feb 10 11:42:13 2003
+++ Zope/lib/python/ZEO/tests/testStart.py	Mon Feb 10 12:47:22 2003
@@ -28,8 +28,6 @@
     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 @@
             try:
                 _pid, status = os.waitpid(pid, flag)
             except os.error, err:
-                if err[0] == 10:
+                if err[0] == errno.ECHILD:
                     continue
                 print err
             else: