commit | e239d23e8cc66605f548585ad4489a8f12fc070d | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Wed Dec 08 23:31:48 2010 +0000 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Wed Dec 08 23:31:48 2010 +0000 |
tree | e165422c11006a4f3595742dd40a7a2095ef59ce | |
parent | 1b2bd3b348d7bb861ae8c92853e5058766ebff80 [diff] [blame] |
Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for NULL
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 32084da..6bdb6c9 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py
@@ -667,6 +667,8 @@ type=socket.SOCK_STREAM, proto=0, flags=socket.AI_PASSIVE) self.assertEqual(a, b) + # Issue #6697. + self.assertRaises(UnicodeEncodeError, socket.getaddrinfo, 'localhost', '\uD800') def test_getnameinfo(self): # only IP addresses are allowed