Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jmc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2007-07-10 00:12:09 +0400
committerDavid Rousselie <dax@happycoders.org>2007-07-10 00:12:09 +0400
commitfcf3a1bdbf20690b8c0347d07be3db782cb73a81 (patch)
tree05a5a6024daa6eeac47d8ec035e91cc5a2324dc5
parentbccd50ea895002b7ebbad71c9dc9d98b387cc220 (diff)
try/except/finally does not work with python2.4
darcs-hash:20070709201209-86b55-29f53f59925ef1d0fdba831ed36da73e65ccb24b.gz
-rw-r--r--src/jmc/jabber/tests/component.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jmc/jabber/tests/component.py b/src/jmc/jabber/tests/component.py
index ce6306f..e2babf6 100644
--- a/src/jmc/jabber/tests/component.py
+++ b/src/jmc/jabber/tests/component.py
@@ -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):