# HG changeset patch # User Mads Kiilerich # Date 2013-01-16 01:01:11 # Node ID a38039ef7312d0fbfffae2aee3ca0e7824b0ea3a # Parent 88a37b19dc0e482b7d6aec386c593a6fae370b96 tests: make test-hgweb.t output stable Instability introduced in combination of a4d7fd7ad1f7 and e389a25e7e60. diff --git a/tests/get-with-headers.py b/tests/get-with-headers.py --- a/tests/get-with-headers.py +++ b/tests/get-with-headers.py @@ -32,7 +32,8 @@ def request(host, path, show): 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))