Add a test to ensure the alias does not regress
authorIan Cordasco <graffatcolmingov@gmail.com>
Sun, 1 Mar 2015 02:19:13 +0000 (20:19 -0600)
committerIan Cordasco <graffatcolmingov@gmail.com>
Sun, 1 Mar 2015 02:19:13 +0000 (20:19 -0600)
test_requests.py

index 6e527848b44e5d2e4537655c16dc169798aa44c5..57f39a620cc4edd30de7fe73eb5dbfa0ed00e8d9 100755 (executable)
@@ -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()