From 19d0d4cfe7c5ec85f90961418b6444e1c69e9587 Mon Sep 17 00:00:00 2001 From: DONNOT Benjamin Date: Fri, 26 Jul 2024 17:31:30 +0200 Subject: [PATCH] remove a test on windows --- lightsim2grid/tests/test_LightSimBackend.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lightsim2grid/tests/test_LightSimBackend.py b/lightsim2grid/tests/test_LightSimBackend.py index c2cebb5..ce30a54 100644 --- a/lightsim2grid/tests/test_LightSimBackend.py +++ b/lightsim2grid/tests/test_LightSimBackend.py @@ -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)