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

Changeset 1014

Show
Ignore:
Timestamp:
03/24/06 11:56:14
Author:
fumanchu
Message:

Minimize problems from overlapping threads in tests.

Files:

Legend:

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

    r970 r1014  
    105105         
    106106        try: 
    107             self.body = [] 
     107            newbody = [] 
    108108            for chunk in response.body: 
    109                 self.body.append(chunk) 
     109                newbody.append(chunk) 
    110110            request.close() 
    111111        except Exception, ex: 
     
    122122            # occurs after status and headers have been written to the client. 
    123123            for chunk in b: 
    124                 self.body.append(chunk) 
    125         self.body = "".join(self.body) 
     124                newbody.append(chunk) 
     125        self.body = "".join(newbody) 
    126126         
    127127        if webtest.ServerError.on: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets