Skip to content
Myr

__init__.py

This file

Path

tests/__init__.py

14 lines · 469 bytes · Python

Last changed by

Not known.

History of this file

Take it

1"""Requests test package initialisation."""23import warnings45try:6    from urllib3.exceptions import SNIMissingWarning78    # urllib3 1.x sets SNIMissingWarning to only go off once,9    # while this test suite requires it to always fire10    # so that it occurs during test_requests.test_https_warnings11    warnings.simplefilter("always", SNIMissingWarning)12except ImportError:13    # urllib3 2.0 removed that warning and errors out instead14    SNIMissingWarning = None