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",
|
to_jid="user2%test.com@jcl.test.com",
|
||||||
body="message")
|
body="message")
|
||||||
try:
|
try:
|
||||||
accounts = self.handler.filter(message, None)
|
accounts = self.handler.filter(message, None)
|
||||||
|
model.db_disconnect()
|
||||||
except NoAccountError, e:
|
except NoAccountError, e:
|
||||||
self.assertNotEquals(e, None)
|
model.db_disconnect()
|
||||||
return
|
self.assertNotEquals(e, None)
|
||||||
finally:
|
else:
|
||||||
model.db_disconnect()
|
self.fail("No exception 'NoAccountError' catched")
|
||||||
self.fail("No exception 'NoAccountError' catched")
|
|
||||||
|
|
||||||
class MailPresenceHandler_TestCase(unittest.TestCase):
|
class MailPresenceHandler_TestCase(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user