Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
10
venv/Lib/site-packages/tornado/test/resolve_test_helper.py
Normal file
10
venv/Lib/site-packages/tornado/test/resolve_test_helper.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from tornado.ioloop import IOLoop
|
||||
from tornado.netutil import ThreadedResolver
|
||||
|
||||
# When this module is imported, it runs getaddrinfo on a thread. Since
|
||||
# the hostname is unicode, getaddrinfo attempts to import encodings.idna
|
||||
# but blocks on the import lock. Verify that ThreadedResolver avoids
|
||||
# this deadlock.
|
||||
|
||||
resolver = ThreadedResolver()
|
||||
IOLoop.current().run_sync(lambda: resolver.resolve(u"localhost", 80))
|
Loading…
Add table
Add a link
Reference in a new issue