Skip to content

Commit

Permalink
Merge pull request #1536 from SpiNNakerManchester/skip_dns_errors
Browse files Browse the repository at this point in the history
Skip on DNS error
  • Loading branch information
Christian-B authored Feb 3, 2025
2 parents f121a49 + 37d8bc2 commit d2753e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion proxy_integration_tests/test_python_debug/check_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# limitations under the License.

import os
from unittest.case import SkipTest
from requests.exceptions import ConnectionError

from spinn_utilities.config_holder import get_config_bool

from spinn_front_end_common.interface.interface_functions \
Expand Down Expand Up @@ -93,7 +96,11 @@ def debug(self):
spike_times=[0]), label="input")
sim.Projection(inp, pop, sim.AllToAllConnector(),
synapse_type=sim.StaticSynapse(weight=5))
sim.run(0)
try:
sim.run(0)
except ConnectionError:
raise SkipTest("DNS Error Monster!")

pop.get_data("v")
run0 = SpynnakerDataView.get_run_dir_path()
found = os.listdir(run0)
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ test =
testfixtures
mock
graphviz
types-requests

0 comments on commit d2753e2

Please sign in to comment.