Skip to content

Commit

Permalink
Compare with Version type instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Dec 14, 2023
1 parent 5f6032a commit e5f5f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bmi_tester/tests/stage_3/test_value.py
Expand Up @@ -25,7 +25,7 @@
def test_get_var_location(initialized_bmi, var_name):
"""Test for get_var_location"""
# assert False
if BMI_VERSION < "1.1":
if BMI_VERSION < Version("1.1"):
pytest.skip(
"testing BMIv{ver}: get_var_location was introduced in BMIv1.1".format(
ver=BMI_VERSION
Expand Down

0 comments on commit e5f5f4c

Please sign in to comment.