mirror of
https://github.com/google/go-jsonnet.git
synced 2026-05-05 20:16:12 +02:00
tests: fix python compat test to allow pre-release versions
This commit is contained in:
parent
579361c1b5
commit
e9ee116a7a
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user