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

Stefan H. Holek stefan at epy.co.at
Fri Feb 27 16:50:07 EST 2004


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

Modified Files:
      Tag: Zope-2_7-branch
	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.37.2.1 ===
--- Zope/utilities/testrunner.py:1.37	Fri May 23 17:07:55 2003
+++ Zope/utilities/testrunner.py	Fri Feb 27 16:50:06 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