diff tests/get-with-headers.py @ 6042:2da5b19a6460

Merge with crew
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 06 Feb 2008 19:57:52 -0800
parents 22713dce19f6
children e837f2294643
line wrap: on
line diff
--- a/tests/get-with-headers.py	Thu Jul 26 07:56:27 2007 -0400
+++ b/tests/get-with-headers.py	Wed Feb 06 19:57:52 2008 -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)