# HG changeset patch # User Mads Kiilerich # Date 1358298071 -3600 # Node ID 1a67e2797f33338af6583fb9c051c3dbc1bbcc67 # Parent b9f44c378e62d329613391f70dbf5e265dd94ce8 tests: make test-hgweb.t output stable Instability introduced in combination of a4d7fd7ad1f7 and e389a25e7e60. [ original upstream message ] diff -r b9f44c378e62 -r 1a67e2797f33 tests/get-with-headers.py --- a/tests/get-with-headers.py Tue Jan 15 20:54:57 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))