Commits

Robert Brewer committed e5f4c10

Removing decorator in test_session for Python 2.3 compatibility

Comments (0)

Files changed (1)

cherrypy/test/test_session.py

             raise cherrypy.InternalRedirect('/blah')
         iredir.exposed = True
         
-        @cherrypy.tools.allow(methods=['GET'])
         def restricted(self):
             return cherrypy.request.method
         restricted.exposed = True
+        restricted._cp_config = {'tools.allow.on': True,
+                                 'tools.allow.methods': ['GET']}
         
         def regen(self):
             cherrypy.tools.sessions.regenerate()