[Zope-Checkins] CVS: Zope3 - test.py:1.1.2.5
Jeremy Hylton
jeremy@zope.com
Sat, 9 Mar 2002 00:25:41 -0500
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv11133
Modified Files:
Tag: Zope-3x-branch
test.py
Log Message:
If debug is enabled, do not catch import errors during test setup.
=== Zope3/test.py 1.1.2.4 => 1.1.2.5 ===
# print traceback
print "Error importing %s\n%s" % (modname, err)
+ if debug:
+ raise
return None
try:
return mod.test_suite()
@@ -217,7 +219,7 @@
build = 0
try:
- opts, args = getopt.getopt(sys.argv[1:], 'vdLbh')
+ opts, args = getopt.getopt(sys.argv[1:], 'vdLbhC')
except getopt.error, msg:
print msg
print "Try `python %s -h' for more information." % sys.argv[0]
@@ -235,6 +237,8 @@
elif k == '-h':
print __doc__
sys.exit(0)
+ elif k == '-C':
+ import pychecker.checker
if build:
cmd = sys.executable + " stupid_build.py"