Skip to content

Commit 34cadc4

Browse files
committed
Add test for processing queries with non-ASCII in their responses
This is fixed in pycares.
1 parent 69d7e3e commit 34cadc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ def test_gethostbyname_bad_family(self):
139139
with self.assertRaises(aiodns.error.DNSError):
140140
self.loop.run_until_complete(f)
141141

142+
def test_query_bad_chars(self):
143+
f = self.resolver.query('xn--cardeosapeluqueros-r0b.com', 'MX')
144+
result = self.loop.run_until_complete(f)
145+
self.assertTrue(result)
146+
142147

143148
if __name__ == '__main__':
144149
unittest.main(verbosity=2)

0 commit comments

Comments
 (0)