Skip to content

Commit

Permalink
remove a test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Jul 26, 2024
1 parent 41e7a69 commit 19d0d4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lightsim2grid/tests/test_LightSimBackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,14 @@ def make_backend(self, detailed_infos_for_cascading_failures=False):


class TestShuntAction(BaseTestShuntAction, unittest.TestCase):
tests_skipped = ["test_shunt_effect"] if sys.platform.startswith("win32") else [] # TODO I don't know why but needs to be fixed
def make_backend(self, detailed_infos_for_cascading_failures=False):
with warnings.catch_warnings():
warnings.filterwarnings("ignore")
bk = LightSimBackend(detailed_infos_for_cascading_failures=detailed_infos_for_cascading_failures)
if sys.platform.startswith("win32"):
self.tests_skipped = ["test_shunt_effect"] # TODO I don't know why but needs to be fixed
return bk



class TestResetEqualsLoadGrid(BaseTestResetEqualsLoadGrid, unittest.TestCase):
def setUp(self):
BaseTestResetEqualsLoadGrid.setUp(self)
Expand Down

0 comments on commit 19d0d4c

Please sign in to comment.