From: Kenneth Reitz Date: Sun, 26 Feb 2012 02:57:30 +0000 (-0500) Subject: simplify httpbin stuff X-Git-Tag: v0.10.5~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d974b46dbef560cce203b82c9491e7804edba7eb;p=services%2Fpython-requests.git simplify httpbin stuff --- diff --git a/tests/test_requests.py b/tests/test_requests.py index c06f88a..3f6a994 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -21,12 +21,10 @@ from requests import HTTPError from requests import get, post, head, put from requests.auth import HTTPBasicAuth, HTTPDigestAuth -if (sys.platform == 'win32') and ('HTTPBIN_URL' not in os.environ): +if 'HTTPBIN_URL' not in os.environ: os.environ['HTTPBIN_URL'] = 'http://httpbin.org/' -# TODO: Detect an open port. -PORT = os.environ.get('HTTPBIN_PORT', '7077') -HTTPBIN_URL = os.environ.get('HTTPBIN_URL', 'http://0.0.0.0:%s/' % (PORT)) +HTTPBIN_URL = os.environ.get('HTTPBIN_URL') def httpbin(*suffix):