--- embedaddon/mtr/test/probe.py 2021/03/17 00:07:30 1.1.1.2 +++ embedaddon/mtr/test/probe.py 2023/09/27 11:18:58 1.1.1.3 @@ -17,7 +17,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -'''Test sending probes and receiving respones.''' +'''Test sending probes and receiving responses.''' import socket import sys @@ -136,7 +136,7 @@ class TestProbeICMPv4(mtrpacket.MtrPacketTest): 'Test timeouts when sending to a non-existant address' # - # Probe a non-existant address, and expect no reply + # Probe a non-existent address, and expect no reply # # I'm not sure what the best way to find an address that doesn't # exist, but is still route-able. If we use a reserved IP @@ -268,9 +268,10 @@ class TestProbeICMPv6(mtrpacket.MtrPacketTest): '''Test sending probes using IP version 6''' def __init__(self, *args): - google_addr = resolve_ipv6_address(mtrpacket.IPV6_TEST_HOST) + if mtrpacket.HAVE_IPV6: + google_addr = resolve_ipv6_address(mtrpacket.IPV6_TEST_HOST) - self.google_addr = google_addr # type: str + self.google_addr = google_addr # type: str super(TestProbeICMPv6, self).__init__(*args)