Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1411

Show
Ignore:
Timestamp:
10/25/06 23:24:15
Author:
fumanchu
Message:

Fix for #587 (Test failure in wsgiapp on Python 2.5). WSGI applications must return iterables (not be iterables).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test_wsgiapps.py

    r1340 r1411  
    1313        response_headers = [('Content-type', 'text/plain')] 
    1414        start_response(status, response_headers) 
    15         yield 'Hello, world!\n' 
    16         yield 'This is a wsgi app running within CherryPy!\n\n' 
     15        output = ['Hello, world!\n', 
     16                  'This is a wsgi app running within CherryPy!\n\n'] 
    1717        keys = environ.keys() 
    1818        keys.sort() 
    1919        for k in keys: 
    20             yield '%s: %s\n' % (k,environ[k]) 
     20            output.append('%s: %s\n' % (k,environ[k])) 
     21        return output 
    2122     
    2223    def reversing_middleware(app): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets