Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9107aa

Browse files
committed
Issue #9777: test_idna requires the "network" resource
1 parent 1afb39a commit d9107aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_socket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ def test_getnameinfo(self):
642642
self.assertRaises(socket.error, socket.getnameinfo, ('mail.python.org',0), 0)
643643

644644
def test_idna(self):
645+
support.requires('network')
645646
# these should all be successful
646647
socket.gethostbyname('испытание.python.org')
647648
socket.gethostbyname_ex('испытание.python.org')

0 commit comments

Comments
 (0)