[Zope-Checkins] CVS: Zope - test.py:1.2.16.1
Jim Fulton
cvs-admin at zope.org
Thu Oct 23 09:03:02 EDT 2003
Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv17153
Modified Files:
Tag: zodb33-devel-branch
test.py
Log Message:
Can now use test modules (.py files) rather than packages.
=== Zope/test.py 1.2 => 1.2.16.1 ===
--- Zope/test.py:1.2 Wed Jun 11 13:18:17 2003
+++ Zope/test.py Thu Oct 23 09:03:00 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