aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty/vty_test_runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vty/vty_test_runner.py')
-rwxr-xr-xtests/vty/vty_test_runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/vty/vty_test_runner.py b/tests/vty/vty_test_runner.py
index dff26c3..fce3654 100755
--- a/tests/vty/vty_test_runner.py
+++ b/tests/vty/vty_test_runner.py
@@ -131,7 +131,7 @@ class TestVTYSTP(TestVTYBase):
s.connect(('127.0.0.2',2905))
except socket.error as msg:
s.close()
- self.assertTrue(False)
+ self.fail("Failed to connect IPv4 socket: %s" % msg)
print("Connected to STP through SCTP (IPv4)")
s.close()
# IPv6:
@@ -141,7 +141,7 @@ class TestVTYSTP(TestVTYBase):
s.connect(('::1',2905))
except socket.error as msg:
s.close()
- self.assertTrue(False)
+ self.fail("Failed to connect IPv6 socket: %s" % msg)
print("Connected to STP through SCTP (IPv6)")
s.close()