/[thuban]/branches/WIP-pyshapelib-bramz/test/runtests.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/runtests.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1269 by bh, Fri Jun 20 16:10:22 2003 UTC revision 1377 by bh, Tue Jul 8 10:54:16 2003 UTC
# Line 18  __version__ = "$Revision$" Line 18  __version__ = "$Revision$"
18  import os, sys  import os, sys
19  import warnings  import warnings
20  import unittest  import unittest
21    import getopt
22    
23  import support  import support
24  support.initthuban()  support.initthuban()
# Line 45  def main(): Line 46  def main():
46      warnings.filterwarnings("error", ".*old table interface.*",      warnings.filterwarnings("error", ".*old table interface.*",
47                              DeprecationWarning)                              DeprecationWarning)
48    
49        verbosity = 1
50    
51        opts, args = getopt.getopt(sys.argv[1:], 'v', ['verbose'])
52        for optchar, value in opts:
53            if optchar in ("-v", "--stub-auto-login"):
54                verbosity = 2
55            print>>sys.stderr, "Unknown option", optchar
56    
57      # All Python files starting with test in the current directory      # All Python files starting with test in the current directory
58      # contain test cases.      # contain test cases.
# Line 57  def main(): Line 65  def main():
65              names.append(file[:-3])              names.append(file[:-3])
66    
67      suite = unittest.defaultTestLoader.loadTestsFromNames(names)      suite = unittest.defaultTestLoader.loadTestsFromNames(names)
68      runner = unittest.TextTestRunner(verbosity = 2)      runner = unittest.TextTestRunner(verbosity = verbosity)
69      result = runner.run(suite)      result = runner.run(suite)
70    
71      support.print_additional_summary()      support.print_additional_summary()

Legend:
Removed from v.1269  
changed lines
  Added in v.1377

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26