Skip to content

Commit

Permalink
no need to raise. Method does the raise
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 29, 2023
1 parent 2f463c0 commit 62024e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spinnaker_testbase/root_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def assert_not_spin_three():
version = get_config_str("Machine", "version")
virtual = get_config_bool("Machine", "virtual_board")
if version in ["2", "3"] and not virtual:
raise FecDataView.raise_skiptest(
FecDataView.raise_skiptest(
f"This test will not run on a spinn-{version} board")

def error_file(self):
Expand Down Expand Up @@ -106,7 +106,7 @@ def runsafe(self, method, retry_delay=3.0, skip_exceptions=None):
except (JobDestroyedError, SpinnmanException) as ex:
for skip_exception in skip_exceptions:
if isinstance(ex, skip_exception):
raise FecDataView.raise_skiptest(
FecDataView.raise_skiptest(
f"{ex} Still not fixed!", ex)
class_file = sys.modules[self.__module__].__file__
with open(self.error_file(), "a", encoding="utf-8") \
Expand All @@ -123,7 +123,7 @@ def runsafe(self, method, retry_delay=3.0, skip_exceptions=None):
self.assert_not_spin_three()
for skip_exception in skip_exceptions:
if isinstance(ex, skip_exception):
raise FecDataView.raise_skiptest(
FecDataView.raise_skiptest(
f"{ex} Still not fixed!", ex)
raise ex
print("")
Expand Down

0 comments on commit 62024e0

Please sign in to comment.