run-tests: remove obsolete coverage check and packaging import (
issue6805)
This removes an obsolete `coverage` version check (version from a decade ago).
This also conveniently removes the dependency over `packaging.version`,
which requires some additional installation since Python 3.10.
--- a/tests/run-tests.py Wed Apr 05 11:58:25 2023 +0200
+++ b/tests/run-tests.py Fri Apr 07 12:11:44 2023 +0200
@@ -54,7 +54,6 @@
import json
import multiprocessing
import os
-import packaging.version as version
import platform
import queue
import random
@@ -794,9 +793,7 @@
try:
import coverage
- covver = version.Version(coverage.__version__)
- if covver < version.Version("3.3"):
- parser.error('coverage options require coverage 3.3 or later')
+ coverage.__version__ # silence unused import warning
except ImportError:
parser.error('coverage options now require the coverage package')