Skip to content
Snippets Groups Projects
Commit a38039ef authored by Mads Kiilerich's avatar Mads Kiilerich
Browse files

tests: make test-hgweb.t output stable

Instability introduced in combination of a4d7fd7ad1f7 and e389a25e7e60.
parent 88a37b19
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,8 @@
response = conn.getresponse()
print response.status, reasons.get(response.reason, response.reason)
if show[:1] == ['-']:
show = [h for h, v in response.getheaders() if h.lower() not in show]
show = sorted(h for h, v in response.getheaders()
if h.lower() not in show)
for h in [h.lower() for h in show]:
if response.getheader(h, None) is not None:
print "%s: %s" % (h, response.getheader(h))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment