From c300075a20b0ae5fce44f70757f55037a1b8d593 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 3 Oct 2024 19:39:28 -0400 Subject: [PATCH] Tests: Remove driver Python version package requirement (#5505) --- test_regress/driver.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test_regress/driver.py b/test_regress/driver.py index 8fd944d62..210713adc 100755 --- a/test_regress/driver.py +++ b/test_regress/driver.py @@ -22,7 +22,6 @@ import time from functools import lru_cache # Eventually use python 3.9's cache from pprint import pformat, pprint -from packaging import version if False: # pylint: disable=using-constant-test pprint(pformat("Ignored")) # Prevent unused warning @@ -1577,7 +1576,12 @@ class VlTest: @property def have_cmake(self) -> bool: ver = Capabilities.cmake_version - return ver and version.parse(ver) >= version.parse("3.8") + if not ver: + return False + m = re.match(r'^(\d+)\.(\d+)$', ver) + if not m: + return False + return int(m.group(1)) > 3 or int(m.group(2)) >= 8 # >= 3.8 @property def have_coroutines(self) -> bool: