[Zope-Checkins] CVS: Zope3/lib/python/Zope/Testing - Builder.py:1.1.4.5 __init__.py:1.3.38.2
Chris McDonough
chrism@zope.com
Sat, 1 Dec 2001 18:44:27 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Testing
In directory cvs.zope.org:/tmp/cvs-serv10513
Modified Files:
Tag: Zope-3x-branch
Builder.py __init__.py
Log Message:
Added global_exceptions dict to Builder module in order to suppress bogus false-positive "unloadable test" reports.
Removed allZopeTests func from __init__ and just import Builder's.
=== Zope3/lib/python/Zope/Testing/Builder.py 1.1.4.4 => 1.1.4.5 ===
import traceback
+global_exceptions = {'Zope.Server.medusa.sendfile.test_sendfile':1,}
+
def listTestableNames( pathname ):
"""
Return a list of the names to be traversed to build tests.
@@ -103,6 +105,8 @@
self._loaded = []
for candidate in self._candidates:
+ if global_exceptions.has_key(candidate):
+ continue
try:
suite.addTest( self.loadTestsFromName( '%s.test_suite'
@@ -138,8 +142,6 @@
return suite
__call__ = _loadTestsFromPath
-
-
def allZopeTests():
import Zope
=== Zope3/lib/python/Zope/Testing/__init__.py 1.3.38.1 => 1.3.38.2 ===
os.environ['ZEO_CLIENT'] = '1'
-from Builder import TestFinder
+from Builder import allZopeTests
-def allZopeTests():
- import Zope
- return TestFinder()( Zope.__path__[0] )