Skip to content

Commit

Permalink
fix which exception is thrown by not having IPv6 loopback
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Cipperly <[email protected]>
  • Loading branch information
mcipperly committed Apr 21, 2021
1 parent ae93fc1 commit 1bb0b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def test_ipv6_only(self):
# Test if our host supports IPv6 before running this test
try:
socket.gethostbyaddr('::1')
except socket.gaierror:
except socket.herror:
self.skipTest("Host does not support IPv6, cannot run this test")

self.tearDown()
Expand Down

0 comments on commit 1bb0b39

Please sign in to comment.