[Zope3-checkins] CVS: Zope3 - test.py:1.53
Marius Gedminas
mgedmin@codeworks.lt
Wed, 9 Apr 2003 05:15:51 -0400
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv31288
Modified Files:
test.py
Log Message:
Updated list of allowed options at the top of the test.py help message
Removed duplicate description of -v
Print a warning message when -r is specified but cannot work
=== Zope3/test.py 1.52 => 1.53 ===
--- Zope3/test.py:1.52 Wed Apr 9 05:11:08 2003
+++ Zope3/test.py Wed Apr 9 05:15:51 2003
@@ -12,7 +12,7 @@
#
##############################################################################
"""
-test.py [-abCdgGLvvt] [modfilter [testfilter]]
+test.py [-aBbcdDgGhLmprtTuv] [modfilter [testfilter]]
Test harness.
@@ -55,12 +55,6 @@
of the DEBUG_ flags defined bythe Python gc module. Multiple options
can be specified by using "-G OPTION1 -G OPTION2."
--v
- With one -v, unittest prints a dot (".") for each test run. With
- -vv, unittest prints the name of each test (for some definition of
- "name" ...). Witn no -v, unittest is silent until the end of the
- run, except when errors occur.
-
--libdir test_root
Search for tests starting in the specified start directory
(useful for testing components being developed outside the main
@@ -652,9 +646,11 @@
GUI = "minimal"
elif k == "-p":
progress = True
- elif k == "-r" and hasattr(sys, "gettotalrefcount"):
- # REFCOUNT can only be true in a debug build.
- REFCOUNT = True
+ elif k == "-r":
+ if hasattr(sys, "gettotalrefcount"):
+ REFCOUNT = True
+ else:
+ print "-r ignored, because it needs a debug build of Python"
elif k == "-T":
TRACE = True
elif k == "-t":