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

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

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

revision 1605 by bh, Tue Aug 19 11:00:40 2003 UTC revision 1673 by bh, Thu Aug 28 13:04:44 2003 UTC
# Line 123  class ThubanTestProgram(unittest.TestPro Line 123  class ThubanTestProgram(unittest.TestPro
123    
124      def runTests(self):      def runTests(self):
125          """Extend inherited method so that we use a ThubanTestRunner"""          """Extend inherited method so that we use a ThubanTestRunner"""
         print "ThubanTestProgram.runTests"  
126          self.testRunner = ThubanTestRunner(verbosity = self.verbosity)          self.testRunner = ThubanTestRunner(verbosity = self.verbosity)
127          unittest.TestProgram.runTests(self)          unittest.TestProgram.runTests(self)
128    
# Line 181  def print_garbage_information(): Line 180  def print_garbage_information():
180      Run the garbage collector and print uncollected objects. Also print      Run the garbage collector and print uncollected objects. Also print
181      any un-unsubscribed messages.      any un-unsubscribed messages.
182      """      """
183        # this function may be called indirectly from test cases that test
184        # test support modules which do not use anything from thuban itself,
185        # so we call initthuban so that we can import the connector module
186        initthuban()
187      import gc, Thuban.Lib.connector      import gc, Thuban.Lib.connector
188      gc.collect()      gc.collect()
189      if gc.garbage:      if gc.garbage:

Legend:
Removed from v.1605  
changed lines
  Added in v.1673

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26