Skip to content
Myr

__init__.py

This file

Path

tests/__init__.py

14 lines · 469 bytes · Python

Last changed by

Support missing SNIMissingWarning in tests (#6336)Quentin Pradetbefore adoption1558590

History of this file

Take it

The walk stopped after 200 commits: lines older than 0b01355 point at it.

Pin more helpful links to sidebarSeth Michael Larsonbefore adoption0b01355

lines 1–4why, one step back
1"""Requests test package initialisation."""
23import warnings4

Support missing SNIMissingWarning in tests (#6336)Quentin Pradetbefore adoption1558590

lines 5–6why, one step back
5try:
6 from urllib3.exceptions import SNIMissingWarning

Pin more helpful links to sidebarSeth Michael Larsonbefore adoption0b01355

line 7why, one step back
7

Support missing SNIMissingWarning in tests (#6336)Quentin Pradetbefore adoption1558590

lines 8–14why, one step back
8 # 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