Browse Source

version test: loosen regex to match version strings with distance > 0 from tag

Fabian Peter Hammerle 2 years ago
parent
commit
28958b60ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/test_version.py

+ 1 - 1
tests/test_version.py

@@ -32,7 +32,7 @@ _VERSION_MODULE_PATH = pathlib.Path(__file__).parent.parent.joinpath(
 def test_version():
     if not _VERSION_MODULE_PATH.exists():
         pytest.skip("package is not installed")
-    assert re.match(r"^\d+\.\d+\.\d+", freesurfer_surface.__version__)
+    assert re.match(r"^\d+\.\d+\.\S+", freesurfer_surface.__version__)
 
 
 def test_version_missing(tmp_path):