Skip to content

Commit 26d0969

Browse files
committed
Merge branch 'baagaard/add-release-1.9.7'
* baagaard/add-release-1.9.7: Fix small bug in Python unit test for Git revision.
2 parents 1e77ed8 + e51d1b1 commit 26d0969

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/pytests/utils/TestSpatialdataVersion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def test_gitVersion(self):
4141
else:
4242
# Check that revision is of the form v2.1.3-16-g9323114
4343
import re
44-
match = re.search("v[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g[0-9,a-z]+", revision)
44+
match = re.search("v[0-9]+\.[0-9]+\.[0-9]+", revision)
45+
if match is None:
46+
match = re.search("v[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g[0-9,a-z]+", revision)
4547
self.failIf(match is None)
4648
return
4749

0 commit comments

Comments
 (0)