From 2bec6a35e211422c61a5404ec6a8c7572c318b54 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 19 Feb 2016 00:30:37 +0100 Subject: fix #956 --- test/netlib/test_tcp.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/netlib') diff --git a/test/netlib/test_tcp.py b/test/netlib/test_tcp.py index e65a2e2f..4b4bbb92 100644 --- a/test/netlib/test_tcp.py +++ b/test/netlib/test_tcp.py @@ -748,17 +748,15 @@ class TestPeekSSL(TestPeek): class TestAddress: - def test_simple(self): - a = tcp.Address("localhost", True) + a = tcp.Address(("localhost", 80), True) assert a.use_ipv6 - b = tcp.Address("foo.com", True) + b = tcp.Address(("foo.com", 80), True) assert not a == b - assert str(b) == str(tuple("foo.com")) - c = tcp.Address("localhost", True) + c = tcp.Address(("localhost", 80), True) assert a == c assert not a != c - assert repr(a) + assert repr(a) == "localhost:80" class TestSSLKeyLogger(tservers.ServerTestBase): -- cgit v1.2.3