Skip to content

Commit

Permalink
reguests ConnectionError
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 10, 2024
1 parent 89c90a1 commit 42faba0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spinnman_integration_tests/test_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from requests.exceptions import ConnectionError
import unittest
from spinn_utilities.config_holder import set_config

Expand All @@ -31,6 +32,8 @@ def setUp(self):
def test_create_job(self):
try:
client = SpallocClient(self.spalloc_url)
except ConnectionError as ex:
raise unittest.SkipTest(str(ex))
except Exception as ex:
raise NotImplementedError(str(type(ex)))
# job = client.create_job_rect_at_board(
Expand Down

0 comments on commit 42faba0

Please sign in to comment.