Skip to content
Myr

more test removal of old imports

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 0bb2005 · Browse files · 1 file+2 added−11 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+2 added−11 removed

  • tests:+2 added−11 removed

1 file+2 added−11 removed

modified:tests/__init__.py+2 added-11 removed
2 unmodified lines
3"""Requests test package initialisation."""45import warnings67try:8 import urllib3 as urllib3_package9except ImportError:10 urllib3_package = False7import urllib3 as urllib3_package8from urllib3.exceptions import SNIMissingWarning912from requests.packages import urllib3 as urllib3_bundle1314if urllib3_package is urllib3_bundle:15 from urllib3.exceptions import SNIMissingWarning16else:17 from requests.packages.urllib3.exceptions import SNIMissingWarning1810# urllib3 sets SNIMissingWarning to only go off once,11# while this test suite requires it to always fire12# so that it occurs during test_requests.test_https_warnings13warnings.simplefilter('always', SNIMissingWarning)