Skip to content
Myr

Add failing test for #2872

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ian Cordasco · committed by Ian Cordasco · parent 4e89ba7 · Browse files · 1 file+9 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−0 removed

  • other:+9 added−0 removed

1 file+9 added−0 removed

modified:test_requests.py+9 added
1349 unmodified lines
1350 else:1351 assert super_len(1352 cStringIO.StringIO('but some how, some way...')) == 2513531354 def test_super_len_correctly_calculates_len_of_partially_read_file(self):1355 """Ensure that we handle partially consumed file like objects."""1356 from requests.utils import super_len1357 s = StringIO.StringIO()1358 s.write('foobarbogus')1359 assert super_len(s) == 013601361 def test_get_environ_proxies_ip_ranges(self):1362 """Ensures that IP addresses are correctly matches with ranges1363 in no_proxy variable."""1364 from requests.utils import get_environ_proxies
362 unmodified lines
1727 s.get(httpbin('status/200'))1728 except ConnectionError as e:1729 assert u"Pool is closed." in str(e)173017311732def test_vendor_aliases():1733 from requests.packages import urllib31734 from requests.packages import chardet17351736 with pytest.raises(ImportError):1737 from requests.packages import webbrowser173817391740if __name__ == '__main__':1741 unittest.main()