summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-14 12:41:20 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-14 12:41:20 +0100
commit7d0b5f622b230b728f1f8be5c62359133bc441c7 (patch)
tree54c555406b500bd9b94529752439d69f7e88b786
parente66968737d433ccc4a5664491e50fad38d5655c3 (diff)
downloadqutebrowser-7d0b5f622b230b728f1f8be5c62359133bc441c7.tar.gz
qutebrowser-7d0b5f622b230b728f1f8be5c62359133bc441c7.zip
version: Remove Python backports from module info
They will always be present (either stdlib or backport), don't have a version number, and we can't tell the two variants apart (other than looking at the Python version) - so there's zero value in having them there.
-rw-r--r--qutebrowser/utils/version.py2
-rw-r--r--tests/unit/utils/test_version.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py
index 74ad73833..94c835357 100644
--- a/qutebrowser/utils/version.py
+++ b/qutebrowser/utils/version.py
@@ -365,8 +365,6 @@ MODULE_INFO: Mapping[str, ModuleInfo] = collections.OrderedDict([
('pygments', ['__version__']),
('yaml', ['__version__']),
('adblock', ['__version__'], "0.3.2"),
- ('dataclasses', []),
- ('importlib_resources', []),
('PyQt5.QtWebEngineWidgets', []),
('PyQt5.QtWebEngine', ['PYQT_WEBENGINE_VERSION_STR']),
('PyQt5.QtWebKitWidgets', []),
diff --git a/tests/unit/utils/test_version.py b/tests/unit/utils/test_version.py
index 912be3bec..6d94fc72c 100644
--- a/tests/unit/utils/test_version.py
+++ b/tests/unit/utils/test_version.py
@@ -715,6 +715,7 @@ class TestModuleVersions:
('yaml', True),
('adblock', True),
('dataclasses', False),
+ ('importlib_resources', False),
])
def test_existing_attributes(self, name, has_version):
"""Check if all dependencies have an expected __version__ attribute.