simplify httpbin stuff
authorKenneth Reitz <me@kennethreitz.com>
Sun, 26 Feb 2012 02:57:30 +0000 (21:57 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Sun, 26 Feb 2012 02:57:30 +0000 (21:57 -0500)
tests/test_requests.py

index c06f88a..3f6a994 100755 (executable)
@@ -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):