diff --git a/tests/test_andes.py b/tests/test_andes.py index 6ac05658..290c035f 100644 --- a/tests/test_andes.py +++ b/tests/test_andes.py @@ -4,6 +4,8 @@ import unittest import numpy as np +import pkg_resources +from pkg_resources import parse_version import andes import ams @@ -17,6 +19,10 @@ class TestMatrices(unittest.TestCase): Tests for system matrices consistency. """ + andes_version = pkg_resources.get_distribution("andes").version + if parse_version(andes_version) < parse_version('1.9.2'): + raise unittest.SkipTest("Requires ANDES version >= 1.9.2") + sp = ams.load(ams.get_case('5bus/pjm5bus_demo.xlsx'), setup=True, no_output=True, default_config=True,) sa = sp.to_andes(setup=True, no_output=True, default_config=True,)