[Zope3-checkins] CVS: Zope3 - test.py:1.78
Jim Fulton
cvs-admin at zope.org
Wed Dec 3 03:46:25 EST 2003
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv14743
Modified Files:
test.py
Log Message:
Allow "tests" modules to be ordinary modules, rather than packages.
=== Zope3/test.py 1.77 => 1.78 ===
--- Zope3/test.py:1.77 Fri Nov 21 12:10:33 2003
+++ Zope3/test.py Wed Dec 3 03:46:24 2003
@@ -400,6 +400,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
# ignore tests that aren't in packages
if not "__init__.py" in files:
More information about the Zope3-Checkins
mailing list