Skip to content

Commit 1bb0b39

Browse files
committed
fix which exception is thrown by not having IPv6 loopback
Signed-off-by: Matt Cipperly <[email protected]>
1 parent ae93fc1 commit 1bb0b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_ipv6_only(self):
296296
# Test if our host supports IPv6 before running this test
297297
try:
298298
socket.gethostbyaddr('::1')
299-
except socket.gaierror:
299+
except socket.herror:
300300
self.skipTest("Host does not support IPv6, cannot run this test")
301301

302302
self.tearDown()

0 commit comments

Comments
 (0)