Skip to content

Commit

Permalink
Merge pull request #12 from SpiNNakerManchester/unittest_setup
Browse files Browse the repository at this point in the history
unset simulator should no longer be needed
  • Loading branch information
Christian-B committed Jun 21, 2021
2 parents 93a3baa + 5978730 commit ade619e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spinnaker_testbase/root_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
get_config_bool, get_config_str, has_config_option)
from pacman.exceptions import PacmanPartitionException, PacmanValueError
from spalloc.job import JobDestroyedError
from spinn_front_end_common.utilities import globals_variables

if os.environ.get('CONTINUOUS_INTEGRATION', 'false').lower() == 'true':
max_tries = 3
Expand All @@ -38,11 +37,11 @@ def _setUp(self, script):
# Set test_seed to None to allow random
self._test_seed = 1

globals_variables.unset_simulator()
path = os.path.dirname(script)
os.chdir(path)

def assert_not_spin_three(self):
@staticmethod
def assert_not_spin_three():
"""
Will raise a SkipTest if run on a none virtual 4 chip board
Expand Down Expand Up @@ -106,7 +105,6 @@ def runsafe(self, method, retry_delay=3.0):
error_file.write(str(ex))
error_file.write("\n")
retries += 1
globals_variables.unset_simulator()
if retries >= max_tries:
raise ex
except (PacmanValueError, PacmanPartitionException) as ex:
Expand Down

0 comments on commit ade619e

Please sign in to comment.