Skip to content

Commit

Permalink
Fix test_utils.compatible_with (#372)
Browse files Browse the repository at this point in the history
Fixes #370
  • Loading branch information
speleo3 authored Jun 10, 2024
1 parent 86ff2c3 commit 9d01072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/tests/helpers/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def assert_in_names_undo(cmd, name: str) -> None:

def compatible_with(version: str) -> bool:
def tupleize_version(str_: str):
return tuple(int(x) for x in str_.partition('.')[0::2] if x.isdigit())
return tuple(int(x) for x in str_.split('.') if x.isdigit())

PYMOL_VERSION = cmd.get_version()
PYMOL_VERSION_TUPLE = tupleize_version(PYMOL_VERSION[0])
Expand Down

0 comments on commit 9d01072

Please sign in to comment.