Commit 12307f09 authored by Jason Madden's avatar Jason Madden

IDNA: Another place to deal with the exception difference.

parent 4666505c
......@@ -76,7 +76,8 @@ def add(klass, hostname, name=None,
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment