def test_vendor_aliases(): from requests.packages import urllib3 from requests.packages import chardet with pytest.raises(ImportError): from requests.packages import webbrowser