summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2016-04-26 11:21:54 +0100
committerJohn R. Lenton <jlenton@gmail.com>2016-04-26 11:22:44 +0100
commit4e7beef860aae511a79df97203c1be50dda35049 (patch)
tree2c9bc4a7fabf22107e9226b6edd1ecb0eac45917 /tests/test_utils.py
parentbbeb0001cdc657ac8c7fef98e154229bc392db0e (diff)
downloadpython-requests-4e7beef860aae511a79df97203c1be50dda35049.tar.gz
utils: let select_proxy not raise an exception when url has no hostname
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 5131e116..13d44df9 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -325,6 +325,7 @@ def test_dotted_netmask(mask, expected):
('hTTp://u:p@Some.Host/path', 'http://some.host.proxy'),
('hTTp://u:p@Other.Host/path', 'http://http.proxy'),
('hTTps://Other.Host', None),
+ ('file:///etc/motd', None),
))
def test_select_proxies(url, expected):
"""Make sure we can select per-host proxies correctly."""