Skip to content

Commit

Permalink
Switch to different podio Version implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 19, 2024
1 parent 07f1990 commit 3ad2b03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_EDM4hepFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def expected_edm4hep_version(inputfile_name):
"""Get the expected edm4hep version from the file name"""
rgx_match = re.match(VERSIONED_FILE_RGX, inputfile_name)
if not rgx_match:
return podio.version.Version(__version__)
return podio.version.Version(rgx_match.group(1).replace("-", "."))
return podio.version.parse(__version__)
return podio.version.parse(rgx_match.group(1).replace("-", "."))


@pytest.fixture(scope="module")
Expand All @@ -53,7 +53,7 @@ def expected_podio_version(inputfile_name):
rgx_match = re.match(VERSIONED_FILE_RGX, inputfile_name)
if not rgx_match:
return podio.version.build_version
return podio.version.Version(rgx_match.group(2).replace("-", "."))
return podio.version.parse(rgx_match.group(2).replace("-", "."))


@pytest.fixture(scope="module")
Expand Down

0 comments on commit 3ad2b03

Please sign in to comment.