Skip to content

Commit

Permalink
fix regression in doctest functional helper: sort headers
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Feb 16, 2017
1 parent 6ed0c16 commit ba920e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Testing/ZopeTestCase/zopedoctest/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ def __init__(self, response, outstream, path, header_output,
wsgi_result, wsgi_headers)
self.header_output = header_output

def __str__(self):
body = self.getBody()
if body:
return "%s\n\n%s" % (self.header_output, body)
return "%s\n" % (self.header_output)


basicre = re.compile('Basic (.+)?:(.+)?$')
headerre = re.compile('(\S+): (.+)$')
Expand Down

0 comments on commit ba920e3

Please sign in to comment.