MCPcopy
hub / github.com/tornadoweb/tornado / test_remove_without_add

Method test_remove_without_add

tornado/test/ioloop_test.py:115–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 sock.close()
114
115 def test_remove_without_add(self):
116 # remove_handler should not throw an exception if called on an fd
117 # was never added.
118 sock, port = bind_unused_port()
119 try:
120 self.io_loop.remove_handler(sock.fileno())
121 finally:
122 sock.close()
123
124 def test_add_callback_from_signal(self):
125 # 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