__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 fileTake it
The walk stopped after 200 commits: lines older than 24dfbfd point at it.
Update quickstart.rst : fixing brotlicffi link (#6044)Chavithrabefore adoption24dfbfd
lines 1–4why, one step back1"""Requests test package initialisation."""23import warnings4Support missing SNIMissingWarning in tests (#6336)Quentin Pradetbefore adoption1558590
lines 5–6why, one step back5try:6 from urllib3.exceptions import SNIMissingWarningUpdate quickstart.rst : fixing brotlicffi link (#6044)Chavithrabefore adoption24dfbfd
line 7why, one step back7Support missing SNIMissingWarning in tests (#6336)Quentin Pradetbefore adoption1558590
lines 8–14why, one step back8 # 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