Mercurial > hg-stable
changeset 18393:a38039ef7312
tests: make test-hgweb.t output stable
Instability introduced in combination of a4d7fd7ad1f7 and e389a25e7e60.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 16 Jan 2013 02:01:11 +0100 |
parents | 88a37b19dc0e |
children | 5010448197bc |
files | tests/get-with-headers.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/get-with-headers.py Thu Jan 10 18:52:17 2013 +0100 +++ b/tests/get-with-headers.py Wed Jan 16 02:01:11 2013 +0100 @@ -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))