You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't fail a test because there are no public IP addresses
When running the test suite on a machine without public IP addresses
there is a list index out of range error:
=================================== FAILURES ===================================
_____________________________ test_disambiguate_ip _____________________________
def test_disambiguate_ip():
# garbage in, garbage out
> public_ip = public_ips()[0]
E IndexError: list index out of range
ipyparallel/tests/test_util.py:11: IndexError
This commit modifies the test by adding a check that the list is not
empty before trying to access its first element.
0 commit comments