(self)
| 1766 | @unittest.skipUnless(support.is_resource_enabled('network'), |
| 1767 | 'network is not enabled') |
| 1768 | def test_idna(self): |
| 1769 | # Check for internet access before running test |
| 1770 | # (issue #12804, issue #25138). |
| 1771 | with socket_helper.transient_internet('python.org'): |
| 1772 | socket.gethostbyname('python.org') |
| 1773 | |
| 1774 | # these should all be successful |
| 1775 | domain = 'испытание.pythontest.net' |
| 1776 | socket.gethostbyname(domain) |
| 1777 | socket.gethostbyname_ex(domain) |
| 1778 | socket.getaddrinfo(domain,0,socket.AF_UNSPEC,socket.SOCK_STREAM) |
| 1779 | # this may not work if the forward lookup chooses the IPv6 address, as that doesn't |
| 1780 | # have a reverse entry yet |
| 1781 | # socket.gethostbyaddr('испытание.python.org') |
| 1782 | |
| 1783 | def check_sendall_interrupted(self, with_timeout): |
| 1784 | # socketpair() is not strictly required, but it makes things easier. |
nothing calls this directly
no test coverage detected