Skip to content

Commit

Permalink
IDNA: Another place to deal with the exception difference.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 29, 2022
1 parent 4666505 commit 12307f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gevent/tests/test__socket_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def test_gethostbyname(self):
ipaddr = self._test('gethostbyname', x,
require_equal_errors=require_equal_errors)
if not isinstance(ipaddr, Exception):
self._test('gethostbyaddr', ipaddr)
self._test('gethostbyaddr', ipaddr,
require_equal_errors=require_equal_errors)
test_gethostbyname.__name__ = 'test_%s_gethostbyname' % name
_setattr(klass, test_gethostbyname.__name__, test_gethostbyname)

Expand Down

0 comments on commit 12307f0

Please sign in to comment.