[Zope-Checkins] CVS: Zope - test.py:1.3

Jim Fulton cvs-admin at zope.org
Fri Nov 28 11:43:34 EST 2003


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv3088

Modified Files:
	test.py 
Log Message:
Allow "tests" modules to be ordinary modules, rather than packages.


=== Zope/test.py 1.2 => 1.3 ===
--- Zope/test.py:1.2	Wed Jun 11 13:18:17 2003
+++ Zope/test.py	Fri Nov 28 11:43:31 2003
@@ -391,6 +391,12 @@
 
     def visit(self, rx, dir, files):
         if os.path.split(dir)[1] != self.dirname:
+            # Allow tests module rather than package.
+            if "tests.py" in files:
+                path = os.path.join(dir, "tests.py")
+                if match(rx, path):
+                    self.files.append(path)
+                    return 
             return
         if not self.is_package(dir):
             return




More information about the Zope-Checkins mailing list