[Zope-Checkins] CVS: Zope/utilities - testrunner.py:1.38

Stefan H. Holek stefan at epy.co.at
Fri Feb 27 16:49:38 EST 2004


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

Modified Files:
	testrunner.py 
Log Message:
Stop testrunner.py from recursing into the 'build-base' directory created by setup.py.


=== Zope/utilities/testrunner.py 1.37 => 1.38 ===
--- Zope/utilities/testrunner.py:1.37	Fri May 23 17:07:55 2003
+++ Zope/utilities/testrunner.py	Fri Feb 27 16:49:38 2004
@@ -128,9 +128,10 @@
     def listTestableNames(self, pathname):
         """Return a list of the names to be traversed to build tests."""
         names = os.listdir(pathname)
-        if "build" in names:
-            # Don't recurse into build directories created by setup.py
-            names.remove("build")
+        for ignore in ('build', 'build-base'):
+            if ignore in names:
+                # Don't recurse into build directories created by setup.py
+                names.remove(ignore)
         if '.testinfo' in names:  # allow local control
             f = open(os.path.join(pathname, '.testinfo'))
             lines = filter(None, f.readlines())




More information about the Zope-Checkins mailing list