try/except/finally does not work with python2.4
darcs-hash:20070709201209-86b55-29f53f59925ef1d0fdba831ed36da73e65ccb24b.gz
This commit is contained in:
@@ -842,13 +842,13 @@ class MailHandler_TestCase(unittest.TestCase):
|
||||
to_jid="user2%test.com@jcl.test.com",
|
||||
body="message")
|
||||
try:
|
||||
accounts = self.handler.filter(message, None)
|
||||
accounts = self.handler.filter(message, None)
|
||||
model.db_disconnect()
|
||||
except NoAccountError, e:
|
||||
self.assertNotEquals(e, None)
|
||||
return
|
||||
finally:
|
||||
model.db_disconnect()
|
||||
self.fail("No exception 'NoAccountError' catched")
|
||||
model.db_disconnect()
|
||||
self.assertNotEquals(e, None)
|
||||
else:
|
||||
self.fail("No exception 'NoAccountError' catched")
|
||||
|
||||
class MailPresenceHandler_TestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user