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-28 01:02:06 +0400
committerDavid Rousselie <dax@happycoders.org>2007-07-28 01:02:06 +0400
commit82aa5f0d4447c10fbf463603d0164be3abdb7787 (patch)
tree2c1191f1414370e620c4091ef314b67a25e7e5dc
parentdade5905c25299199febf69dcef406fed1dd5f87 (diff)
make JMC python2.4 compliant
darcs-hash:20070727210206-86b55-ccd9bc3c7a335b9f8fe78c0b9446108c276daea0.gz
-rw-r--r--src/jmc/jabber/tests/component.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jmc/jabber/tests/component.py b/src/jmc/jabber/tests/component.py
index e7a9357..2890cf8 100644
--- a/src/jmc/jabber/tests/component.py
+++ b/src/jmc/jabber/tests/component.py
@@ -846,11 +846,10 @@ class MailHandler_TestCase(unittest.TestCase):
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):