summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-01-21 10:05:43 +0100
committerFlorian Bruhin <me@the-compiler.org>2022-01-21 10:05:43 +0100
commitcc012d91d979b18e382c3a56f26e1fdec30d6ee2 (patch)
tree4c4e34b48cc233c7fd948769d87e8659f1a97c26
parent788a3955b8ebf63a93e68926a047c22b9c684ea0 (diff)
downloadqutebrowser-cc012d91d979b18e382c3a56f26e1fdec30d6ee2.tar.gz
qutebrowser-cc012d91d979b18e382c3a56f26e1fdec30d6ee2.zip
ci: Work around Python 3.10/3.11 issues
See https://github.com/certifi/python-certifi/pull/147
-rw-r--r--pytest.ini2
-rw-r--r--qutebrowser/utils/log.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/pytest.ini b/pytest.ini
index 72ad24002..ed7052085 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -86,4 +86,6 @@ filterwarnings =
ignore:_SixMetaPathImporter\.find_spec\(\) not found; falling back to find_module\(\):ImportWarning
# https://github.com/ionelmc/python-hunter/issues/97
ignore:The distutils\.sysconfig module is deprecated, use sysconfig instead:DeprecationWarning
+ # https://github.com/certifi/python-certifi/issues/170
+ ignore:path is deprecated\. Use files\(\) instead\. Refer to https.//importlib-resources\.readthedocs\.io/en/latest/using\.html#migrating-from-legacy for migration advice\.:DeprecationWarning:certifi.core
faulthandler_timeout = 90
diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py
index 4853d62ae..63b7ea69e 100644
--- a/qutebrowser/utils/log.py
+++ b/qutebrowser/utils/log.py
@@ -43,7 +43,9 @@ except ImportError:
colorama = None
if TYPE_CHECKING:
- # pylint: disable=unused-import
+ # Only used in type annotation strings, whether pylint thinks it's unused
+ # depends on Python version...
+ # pylint: disable=unused-import,useless-suppression
from qutebrowser.config import config as configmodule
from typing import TextIO