From: richard Date: Mon, 10 Aug 2009 04:32:11 +0000 (+0000) Subject: py2.4 compat X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b2217167eb45176ec8177f2e1d41da912545567;p=roundup.git py2.4 compat git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4346 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_xmlrpc.py b/test/test_xmlrpc.py index ac4e897..4eb7c41 100644 --- a/test/test_xmlrpc.py +++ b/test/test_xmlrpc.py @@ -98,18 +98,20 @@ class TestCase(unittest.TestCase): def testAuthAllowedEdit(self): self.db.setCurrentUser('admin') try: - self.server.set('user2', 'realname=someone') - except Unauthorised, err: - self.fail('raised %s'%err) + try: + self.server.set('user2', 'realname=someone') + except Unauthorised, err: + self.fail('raised %s'%err) finally: self.db.setCurrentUser('joe') def testAuthAllowedCreate(self): self.db.setCurrentUser('admin') try: - self.server.create('user', 'username=blah') - except Unauthorised, err: - self.fail('raised %s'%err) + try: + self.server.create('user', 'username=blah') + except Unauthorised, err: + self.fail('raised %s'%err) finally: self.db.setCurrentUser('joe')