changeset 50335:787e7caf887a stable

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.
author pacien <pacien.trangirard@pacien.net>
date Fri, 07 Apr 2023 12:11:44 +0200
parents 2231f7d8a602
children cf4d2f31660d
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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')