diff -r 90b51a0fe1f0 -r 06b69a53ab0f tests/get-with-headers.py --- a/tests/get-with-headers.py Thu Jun 29 16:44:23 2006 -0700 +++ b/tests/get-with-headers.py Wed Nov 28 08:38:42 2007 -0800 @@ -14,3 +14,7 @@ print "%s: %s" % (h, response.getheader(h)) print sys.stdout.write(response.read()) + +if 200 <= response.status <= 299: + sys.exit(0) +sys.exit(1)