From 1b2217167eb45176ec8177f2e1d41da912545567 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 10 Aug 2009 04:32:11 +0000 Subject: [PATCH] py2.4 compat git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4346 57a73879-2fb5-44c3-a270-3262357dd7e2 --- test/test_xmlrpc.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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') -- 2.30.2