[Zodb-checkins] CVS: StandaloneZODB - test.py:1.6

Jeremy Hylton jeremy@zope.com
Thu, 4 Oct 2001 14:24:12 -0400


Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv22401

Modified Files:
	test.py 
Log Message:
The crude hacks continue.  

Ignore unit tests found in directories that aren't pacakges.  The
Tools directory contains scripts that aren't modules or packages.  Its
tests subdirectory, thus, can't play along with the approach used by
the other unit tests.

XXX Should think of a better way to handle these tests.



=== StandaloneZODB/test.py 1.5 => 1.6 ===
         if dir[:29] == DOTSLASH + "bsddb3Storage%sbsddb3Storage" % os.sep:
             dir = "./" + dir[16:]
+        # ignore tests that aren't in packages
+        if not "__init__.py" in files:
+            return
         for file in files:
             if file[:4] == "test" and file[-3:] == ".py":
                 path = os.path.join(dir, file)