diff options
| author | John R. Lenton <jlenton@gmail.com> | 2016-04-26 11:21:54 +0100 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2016-04-26 11:22:44 +0100 |
| commit | 4e7beef860aae511a79df97203c1be50dda35049 (patch) | |
| tree | 2c9bc4a7fabf22107e9226b6edd1ecb0eac45917 /tests/test_utils.py | |
| parent | bbeb0001cdc657ac8c7fef98e154229bc392db0e (diff) | |
| download | python-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.py | 1 |
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.""" |
