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

Changeset 1522

Show
Ignore:
Timestamp:
12/11/06 15:30:41
Author:
fumanchu
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/test_wsgiapp_filter.py

    r1017 r1522  
    1515        response_headers = [('Content-type', 'text/plain')] 
    1616        start_response(status, response_headers) 
    17         yield 'Hello, world!\n' 
    18         yield 'This is a wsgi app running within CherryPy!\n\n' 
     17        output = ['Hello, world!\n', 
     18                  'This is a wsgi app running within CherryPy!\n\n'] 
    1919        keys = environ.keys() 
    2020        keys.sort() 
    2121        for k in keys: 
    22             yield '%s: %s\n' % (k,environ[k]) 
     22            output.append('%s: %s\n' % (k,environ[k])) 
     23        return output 
    2324 
    2425    class Root: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets