[Subversion] / PEAK / setup.py  

Diff of /PEAK/setup.py

Parent Directory | Revision Log

version 375, Sun Mar 31 20:45:54 2002 UTC version 377, Sun Mar 31 21:33:31 2002 UTC
Line 45 
Line 45 
   
     description = "Run unit tests after installation"      description = "Run unit tests after installation"
   
     user_options = []      user_options = [('test-module=','m','Test module (default=TW.tests)'),]
   
     def initialize_options(self):      def initialize_options(self):
         self.test_names = None          self.test_module = None
   
     def finalize_options(self):      def finalize_options(self):
   
         if self.test_names is None:          if self.test_module is None:
             self.test_names = ['TW.tests.test_suite']              self.test_module = 'TW.tests'
   
           self.test_args = [self.test_module+'.test_suite']
   
         if self.verbose:          if self.verbose:
             self.test_names.insert(0,'--verbose')              self.test_args.insert(0,'--verbose')
   
     def run(self):      def run(self):
   
Line 65 
Line 67 
   
         if not self.dry_run:          if not self.dry_run:
             from unittest import main              from unittest import main
             main(None, None, sys.argv[:1]+self.test_names)              main(None, None, sys.argv[:1]+self.test_args)
   
   
   
   
   


Generate output suitable for use with a patch program
Legend:
Removed from v.375  
changed lines
  Added in v.377

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help