Commits

Robert Brewer committed 0a780d8

2.x fix for #587 (Test failure in wsgiapp on Python 2.5).

  • Participants
  • Parent commits 6115503
  • Branches cherrypy-2.x

Comments (0)

Files changed (1)

cherrypy/test/test_wsgiapp_filter.py

         status = '200 OK'
         response_headers = [('Content-type', 'text/plain')]
         start_response(status, response_headers)
-        yield 'Hello, world!\n'
-        yield 'This is a wsgi app running within CherryPy!\n\n'
+        output = ['Hello, world!\n',
+                  'This is a wsgi app running within CherryPy!\n\n']
         keys = environ.keys()
         keys.sort()
         for k in keys:
-            yield '%s: %s\n' % (k,environ[k])
+            output.append('%s: %s\n' % (k,environ[k]))
+        return output
 
     class Root:
         def index(self):