(self)
| 1817 | @unittest.skipUnless(support.is_resource_enabled('network'), |
| 1818 | 'network is not enabled') |
| 1819 | def test_idna(self): |
| 1820 | # Check for internet access before running test |
| 1821 | # (issue #12804, issue #25138). |
| 1822 | with socket_helper.transient_internet('python.org'): |
| 1823 | socket.gethostbyname('python.org') |
| 1824 | |
| 1825 | # these should all be successful |
| 1826 | domain = 'испытание.pythontest.net' |
| 1827 | socket.gethostbyname(domain) |
| 1828 | socket.gethostbyname_ex(domain) |
| 1829 | socket.getaddrinfo(domain,0,socket.AF_UNSPEC,socket.SOCK_STREAM) |
| 1830 | # this may not work if the forward lookup chooses the IPv6 address, as that doesn't |
| 1831 | # have a reverse entry yet |
| 1832 | # socket.gethostbyaddr('испытание.python.org') |
| 1833 | |
| 1834 | def check_sendall_interrupted(self, with_timeout): |
| 1835 | # socketpair() is not strictly required, but it makes things easier. |
nothing calls this directly
no test coverage detected