Skip to content
Myr

__init__.py

This file

Path

tests/__init__.py

22 lines · 622 bytes · Python

Last changed by

Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitzbefore adoptionfb01456

History of this file

Take it

Merge pull request #3429 from nateprewitt/docstring_cleanupKenneth Reitzbefore adoptionfb01456

line 1why, one step back
1# -*- coding: utf-8 -*-

Test security warnings (#3289)John Vandenbergbefore adoption400d27f

lines 2–22why, one step back
2
3"""Requests test package initialisation."""45import warnings67try:8 import urllib3 as urllib3_package9except ImportError:10 urllib3_package = False1112from 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 SNIMissingWarning1819# urllib3 sets SNIMissingWarning to only go off once,20# while this test suite requires it to always fire21# so that it occurs during test_requests.test_https_warnings22warnings.simplefilter('always', SNIMissingWarning)