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 |
|
|
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: |