[Zope3-checkins] SVN: Zope3/trunk/test.py Exclude external packages
from tests.
Jim Fulton
jim at zope.com
Thu Nov 3 17:03:48 EST 2005
Log message for revision 39877:
Exclude external packages from tests.
Also add a logging.disable call to avoid a spurious logging error
on exit.
Changed:
U Zope3/trunk/test.py
-=-
Modified: Zope3/trunk/test.py
===================================================================
--- Zope3/trunk/test.py 2005-11-03 17:34:46 UTC (rev 39876)
+++ Zope3/trunk/test.py 2005-11-03 22:03:47 UTC (rev 39877)
@@ -16,7 +16,7 @@
$Id$
"""
-import sys, os, warnings
+import logging, os, sys, warnings
here = os.path.abspath(os.path.dirname(sys.argv[0]))
@@ -30,9 +30,36 @@
from zope.testing import testrunner
defaults = ['--tests-pattern', '^f?tests$', '--test-path', src]
+defaults += ['-m',
+ '!^('
+ 'ZConfig'
+ '|'
+ 'BTrees'
+ '|'
+ 'persistent'
+ '|'
+ 'ThreadedAsync'
+ '|'
+ 'transaction'
+ '|'
+ 'ZEO'
+ '|'
+ 'ZODB'
+ '|'
+ 'twisted'
+ '|'
+ 'zdaemon'
+ '|'
+ 'zope[.]testing'
+ '|'
+ ')[.]']
# Get rid of twisted.conch.ssh warning
warnings.filterwarnings(
'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh')
-sys.exit(testrunner.run(defaults))
+result = testrunner.run(defaults)
+
+# Avoid spurious error during exit. Some thing is trying to log
+# something after the files used by the logger have been closed.
+logging.disable(999999999)
More information about the Zope3-Checkins
mailing list