class OracleSchemaDropper(ansisql.ANSISchemaDropper):
def visit_sequence(self, sequence):
- if not sequence.optional:
- self.append("DROP SEQUENCE %s" % sequence.name)
- self.execute()
+ self.append("DROP SEQUENCE %s" % sequence.name)
+ self.execute()
self._initTest = None
unittest.TestSuite.__init__(self, tests)
+ def do_run(self, result):
+ """nice job unittest ! you switched __call__ and run() between py2.3 and 2.4 thereby
+ making straight subclassing impossible !"""
+ for test in self._tests:
+ if result.shouldStop:
+ break
+ test(result)
+ return result
+
def run(self, result):
+ return self(result)
+
+ def __call__(self, result):
try:
if self._initTest is not None:
self._initTest.setUpAll()
result.addError(self._initTest, self.__exc_info())
pass
try:
- return unittest.TestSuite.run(self, result)
+ return self.do_run(result)
finally:
try:
if self._initTest is not None:
return (exctype, excvalue, tb)
return (exctype, excvalue, tb)
-
unittest.TestLoader.suiteClass = TTestSuite
def runTests(suite):
runner.run(suite)
def main():
- unittest.main()
\ No newline at end of file
+ unittest.main()