Commit 24008ff
committed
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.1 parent e204e8c commit 24008ff
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments