Skip to content

Commit

Permalink
Ignore Python 3.7 collections.abc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Jun 27, 2018
1 parent 96defc5 commit e9c78b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytest.ini
Expand Up @@ -64,3 +64,6 @@ qt_log_ignore =
^QSettings::value: Empty key passed
^Icon theme ".*" not found
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
5 changes: 5 additions & 0 deletions qutebrowser/utils/log.py
Expand Up @@ -209,6 +209,11 @@ def _init_py_warnings():
"""Initialize Python warning handling."""
warnings.simplefilter('default')
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
Expand Down

0 comments on commit e9c78b2

Please sign in to comment.