Skip to content

Commit e9ee116

Browse files
tests: fix python compat test to allow pre-release versions
1 parent 579361c commit e9ee116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-tests/compat_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def test_jsonnet_evaluate_file_multi(self):
473473

474474
def test_jsonnet_version(self):
475475
res = lib.jsonnet_version()
476-
match = re.match(r'^v[0-9]+[.][0-9]+[.][0-9]+ [(]go-jsonnet[)]$', to_bytes(res).decode('utf-8'))
476+
match = re.match(r'^v[0-9]+[.][0-9]+[.][0-9]+(-?([a-z]+[0-9]*))? [(]go-jsonnet[)]$', to_bytes(res).decode('utf-8'))
477477
self.assertIsNotNone(match)
478478

479479
def test_jsonnet_native_callback_square(self):

0 commit comments

Comments
 (0)