mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Make version test compatible with non-beta releases
This commit is contained in:
parent
dc7ea3ae8b
commit
2a2627e8a9
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class TestVersion(TestCase):
|
|||
|
||||
def slurp(self, file="../CMakeLists.txt"):
|
||||
number = "\.".join(["[0-9]+"] * 3)
|
||||
ver = re.compile("^set \(PROJECT_VERSION \"({0}.+)\"\)$".format(number))
|
||||
ver = re.compile("^set \(PROJECT_VERSION \"({0}[^\"]*)\"\)$".format(number))
|
||||
with open(file) as fh:
|
||||
for line in fh:
|
||||
if "PROJECT_VERSION" in line:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue