From d974b46dbef560cce203b82c9491e7804edba7eb Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 25 Feb 2012 21:57:30 -0500 Subject: [PATCH] simplify httpbin stuff --- tests/test_requests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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): -- 2.7.4