Ignore Python 3.7 collections.abc warning
Related issues/PRs: https://github.com/yaml/pyyaml/pull/181 https://github.com/pypa/setuptools/issues/1401 https://github.com/pallets/markupsafe/pull/98 https://github.com/yaml/pyyaml/pull/181 https://github.com/pallets/jinja/pull/867
This commit is contained in:
parent
96defc5dc2
commit
e9c78b29ed
@ -64,3 +64,6 @@ qt_log_ignore =
|
|||||||
^QSettings::value: Empty key passed
|
^QSettings::value: Empty key passed
|
||||||
^Icon theme ".*" not found
|
^Icon theme ".*" not found
|
||||||
xfail_strict = true
|
xfail_strict = true
|
||||||
|
filterwarnings =
|
||||||
|
# This happens in many qutebrowser dependencies...
|
||||||
|
ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working:DeprecationWarning
|
||||||
|
@ -209,6 +209,11 @@ def _init_py_warnings():
|
|||||||
"""Initialize Python warning handling."""
|
"""Initialize Python warning handling."""
|
||||||
warnings.simplefilter('default')
|
warnings.simplefilter('default')
|
||||||
warnings.filterwarnings('ignore', module='pdb', category=ResourceWarning)
|
warnings.filterwarnings('ignore', module='pdb', category=ResourceWarning)
|
||||||
|
# This happens in many qutebrowser dependencies...
|
||||||
|
warnings.filterwarnings('ignore', category=DeprecationWarning,
|
||||||
|
message="Using or importing the ABCs from "
|
||||||
|
"'collections' instead of from 'collections.abc' "
|
||||||
|
"is deprecated, and in 3.8 it will stop working")
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
Loading…
Reference in New Issue
Block a user