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:
6ea3f2a
)
Add a test to ensure the alias does not regress
author
Ian Cordasco
<graffatcolmingov@gmail.com>
Sun, 1 Mar 2015 02:19:13 +0000
(20:19 -0600)
committer
Ian Cordasco
<graffatcolmingov@gmail.com>
Sun, 1 Mar 2015 02:19:13 +0000
(20:19 -0600)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 6e527848b44e5d2e4537655c16dc169798aa44c5..57f39a620cc4edd30de7fe73eb5dbfa0ed00e8d9 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-1598,5
+1598,12
@@
def test_urllib3_retries():
with pytest.raises(RetryError):
s.get(httpbin('status/500'))
+def test_vendor_aliases():
+ from requests.packages import urllib3
+ from requests.packages import chardet
+
+ with pytest.raises(ImportError):
+ from requests.packages import webbrowser
+
if __name__ == '__main__':
unittest.main()