Changeset 1751
- Timestamp:
- 10/16/07 12:54:16
- Files:
-
- trunk/cherrypy/test/test.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test.py
r1741 r1751 103 103 interactive = True 104 104 105 shortopts = [] 106 longopts = ['cover', 'profile', 'validate', 'conquer', 'dumb', '1.0', 107 'ssl', 'help', 'basedir=', 'port=', 'server=', 'host='] 108 105 109 def __init__(self, available_tests, args=sys.argv[1:]): 106 110 """Constructor to populate the TestHarness instance. … … 113 117 self.available_tests = available_tests 114 118 115 longopts = ['cover', 'profile', 'validate', 'conquer', 'dumb', 116 '1.0', 'ssl', 'help', 117 'basedir=', 'port=', 'server=', 'host='] 119 longopts = self.longopts[:] 118 120 longopts.extend(self.available_tests) 119 121 try: 120 opts, args = getopt.getopt(args, "", longopts)122 opts, args = getopt.getopt(args, self.shortopts, longopts) 121 123 except getopt.GetoptError: 122 124 # print help information and exit

