Skip to content

Commit

Permalink
Add a test to ensure the alias does not regress
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Cordasco committed Mar 1, 2015
1 parent 6ea3f2a commit 9d8a57f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_requests.py
Expand Up @@ -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()

0 comments on commit 9d8a57f

Please sign in to comment.