From e9ee116a7a3ec7f1235a59141203d5f6e229dc9e Mon Sep 17 00:00:00 2001 From: John Bartholomew Date: Sat, 22 Feb 2025 17:57:46 +0000 Subject: [PATCH] tests: fix python compat test to allow pre-release versions --- c-bindings-tests/compat_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-bindings-tests/compat_test.py b/c-bindings-tests/compat_test.py index 84157d3..d83f62a 100755 --- a/c-bindings-tests/compat_test.py +++ b/c-bindings-tests/compat_test.py @@ -473,7 +473,7 @@ class TestJsonnetEvaluateBindings(unittest.TestCase): def test_jsonnet_version(self): res = lib.jsonnet_version() - match = re.match(r'^v[0-9]+[.][0-9]+[.][0-9]+ [(]go-jsonnet[)]$', to_bytes(res).decode('utf-8')) + match = re.match(r'^v[0-9]+[.][0-9]+[.][0-9]+(-?([a-z]+[0-9]*))? [(]go-jsonnet[)]$', to_bytes(res).decode('utf-8')) self.assertIsNotNone(match) def test_jsonnet_native_callback_square(self):