projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d339b0f
)
Remove a wayward change.
author
Cory Benfield
<lukasaoz@gmail.com>
Thu, 16 Feb 2012 19:32:20 +0000
(19:32 +0000)
committer
Cory Benfield
<lukasaoz@gmail.com>
Thu, 16 Feb 2012 19:32:20 +0000
(19:32 +0000)
tests/test_requests.py
patch
|
blob
|
history
diff --git
a/tests/test_requests.py
b/tests/test_requests.py
index
14e7657
..
de89f68
100755
(executable)
--- a/
tests/test_requests.py
+++ b/
tests/test_requests.py
@@
-23,7
+23,8
@@
from requests.auth import HTTPBasicAuth, HTTPDigestAuth
-os.environ['HTTPBIN_URL'] = 'http://httpbin.org/'
+if (sys.platform == 'win32') and ('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')