changeset 4061:fd35b36d6282

fix test failures
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 31 Aug 2008 22:14:02 +0200
parents e513bd09cb3b
children e5778919c0a2 d54e233a8784
files MoinMoin/auth/_tests/test_auth.py MoinMoin/script/old/xmlrpc-tools/UpdateGroupTest.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/_tests/test_auth.py	Sun Aug 31 19:45:41 2008 +0200
+++ b/MoinMoin/auth/_tests/test_auth.py	Sun Aug 31 22:14:02 2008 +0200
@@ -51,7 +51,9 @@
 
     def process_request(self, environ):
         request = request_wsgi.Request(environ)
+        save_user = request.user # keep a reference, request.finish does "del request.user"
         request.run()
+        request.user = save_user
         return request # request.status, request.headers, request.output()
 
     def testNoAuth(self):
--- a/MoinMoin/script/old/xmlrpc-tools/UpdateGroupTest.py	Sun Aug 31 19:45:41 2008 +0200
+++ b/MoinMoin/script/old/xmlrpc-tools/UpdateGroupTest.py	Sun Aug 31 22:14:02 2008 +0200
@@ -2,7 +2,7 @@
 # -*- coding: iso-8859-1 -*-
 """
     MoinMoin - client side of xmlrpc UpdateGroup functionality.
-    
+
     You can use this code to update a group page in a target wiki via xmlrpc.
     Of course you need to enable the xmlrpc service in the target wiki, see
     your actions_excluded settings (by default, it contains 'xmlrpc')!
@@ -33,7 +33,6 @@
     @param groupdesc: group description (unicode)
     @param groupmembers: group member names (list of unicode)
     @param acl: Access Control List value (optional, unicode)
-    @return: 
     """
     wiki = xmlrpclib.ServerProxy(server_url)
     auth_token = wiki.getAuthToken(username, password)