Changeset 1267 in tailor for vcpx/tests/__init__.py
- Timestamp:
- 08/31/06 02:53:57 (7 years ago)
- Hash name:
- 20060831005357-97f81-0103181ad2d4d9cbb181153ac47a880af3f163cf
- File:
-
- 1 edited
-
vcpx/tests/__init__.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/tests/__init__.py
r1230 r1267 8 8 import sys 9 9 from unittest import TestProgram, TestSuite 10 11 DEBUG = False 10 12 11 13 from shwrap import * … … 29 31 -h, --help Show this message 30 32 -v, --verbose Verbose output 33 -d, --debug Debug output 31 34 -q, --quiet Minimal output 32 35 -l, --list List available tests without running them … … 46 49 import getopt 47 50 try: 48 options, args = getopt.getopt(argv[1:], 'hHv ql',49 ['help','verbose',' quiet','list'])51 options, args = getopt.getopt(argv[1:], 'hHvdql', 52 ['help','verbose','debug','quiet','list']) 50 53 listonly = False 51 54 for opt, value in options: … … 56 59 if opt in ('-v','--verbose'): 57 60 self.verbosity = 2 61 if opt in ('-d','--debug'): 62 global DEBUG 63 DEBUG = True 58 64 if opt in ('-l','--list'): 59 65 listonly = True
Note: See TracChangeset
for help on using the changeset viewer.
