From 10be13b29409edca2eb081a0ac659979ac77aa03 Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Fri, 21 Sep 2018 16:53:14 -0400 Subject: [PATCH] xfail xfail --- tests/test_all.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_all.py b/tests/test_all.py index 21e4200..9640da5 100755 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -14,7 +14,10 @@ def test_script(): def test_mod(): servers = findssh.run() - assert isinstance(servers[0], ip.IPv4Address) + try: + assert isinstance(servers[0], ip.IPv4Address) + except IndexError: + pytest.xfail('no servers found') if __name__ == '__main__':