run-tests: remove obsolete coverage check and packaging import (issue6805) stable
authorpacien <pacien.trangirard@pacien.net>
Fri, 07 Apr 2023 12:11:44 +0200
branchstable
changeset 50335 787e7caf887a
parent 50334 2231f7d8a602
child 50336 cf4d2f31660d
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.
tests/run-tests.py
--- 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')