From 6adba86bc05bf4040e3d90673f5aa5543ce3097e Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Tue, 10 Sep 2024 10:13:21 +0100 Subject: [PATCH] skip on ConnectionError --- spinnman_integration_tests/test_job.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spinnman_integration_tests/test_job.py b/spinnman_integration_tests/test_job.py index f626e1ce8..85e624a7e 100644 --- a/spinnman_integration_tests/test_job.py +++ b/spinnman_integration_tests/test_job.py @@ -13,7 +13,7 @@ # limitations under the License. import unittest - +from requests.exceptions import ConnectionError from spinn_utilities.config_holder import set_config from spinn_machine.version import FIVE @@ -30,7 +30,10 @@ def setUp(self): self.spalloc_machine = "SpiNNaker1M" def test_create_job(self): - client = SpallocClient(self.spalloc_url) + try: + client = SpallocClient(self.spalloc_url) + except ConnectionError as ex: + raise unittest.SkipTest(str(ex)) # job = client.create_job_rect_at_board( # WIDTH, HEIGHT, triad=(x, y, b), machine_name=SPALLOC_MACHINE, # max_dead_boards=1)