MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_remove_without_add

Method test_remove_without_add

python/python3/tornado/test/ioloop_test.py:118–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 sock.close()
117
118 def test_remove_without_add(self):
119 # remove_handler should not throw an exception if called on an fd
120 # was never added.
121 sock, port = bind_unused_port()
122 try:
123 self.io_loop.remove_handler(sock.fileno())
124 finally:
125 sock.close()
126
127 def test_add_callback_from_signal(self):
128 # cheat a little bit and just run this normally, since we can't

Callers

nothing calls this directly

Calls 4

bind_unused_portFunction · 0.90
remove_handlerMethod · 0.45
filenoMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected