# HG changeset patch # User Matt Mackall # Date 1284239863 18000 # Node ID 20f011311212b96eeede8308339313cc12bb240c # Parent 81869cc892f25823816f3c7d0d1e12c67f71a730# Parent bd98796c0b6f46efc2d88630f0ef5fa707feb0f5 merge with crew diff -r 81869cc892f2 -r 20f011311212 tests/get-with-headers.py --- a/tests/get-with-headers.py Sat Sep 11 00:40:39 2010 +0200 +++ b/tests/get-with-headers.py Sat Sep 11 16:17:43 2010 -0500 @@ -17,6 +17,8 @@ sys.argv.remove('--twice') twice = True +reasons = {'Not modified': 'Not Modified'} # python 2.4 + tag = None def request(host, path, show): @@ -28,7 +30,7 @@ conn = httplib.HTTPConnection(host) conn.request("GET", path, None, headers) response = conn.getresponse() - print response.status, response.reason + print response.status, reasons.get(response.reason, response.reason) for h in [h.lower() for h in show]: if response.getheader(h, None) is not None: print "%s: %s" % (h, response.getheader(h))