Python tornado.gen.LeakedCallbackError() Examples
The following are 21
code examples of tornado.gen.LeakedCallbackError().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
tornado.gen
, or try the search function
.
Example #1
Source File: gen_test.py From teleport with Apache License 2.0 | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #2
Source File: gen_test.py From EventGhost with GNU General Public License v2.0 | 5 votes |
def test_orphaned_callback(self): @gen.engine def f(): self.orphaned_callback = yield gen.Callback(1) try: self.run_gen(f) raise Exception("did not get expected exception") except gen.LeakedCallbackError: pass self.orphaned_callback()
Example #3
Source File: gen_test.py From EventGhost with GNU General Public License v2.0 | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #4
Source File: gen_test.py From EventGhost with GNU General Public License v2.0 | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #5
Source File: gen_test.py From honeything with GNU General Public License v3.0 | 5 votes |
def test_orphaned_callback(self): @gen.engine def f(): self.orphaned_callback = yield gen.Callback(1) try: self.run_gen(f) raise Exception("did not get expected exception") except gen.LeakedCallbackError: pass self.orphaned_callback()
Example #6
Source File: gen_test.py From honeything with GNU General Public License v3.0 | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #7
Source File: gen_test.py From pySINDy with MIT License | 5 votes |
def test_orphaned_callback(self): @gen.engine def f(): self.orphaned_callback = yield gen.Callback(1) try: self.run_gen(f) raise Exception("did not get expected exception") except gen.LeakedCallbackError: pass self.orphaned_callback()
Example #8
Source File: gen_test.py From pySINDy with MIT License | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #9
Source File: gen_test.py From pySINDy with MIT License | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #10
Source File: gen_test.py From teleport with Apache License 2.0 | 5 votes |
def test_orphaned_callback(self): @gen.engine def f(): self.orphaned_callback = yield gen.Callback(1) try: self.run_gen(f) raise Exception("did not get expected exception") except gen.LeakedCallbackError: pass self.orphaned_callback()
Example #11
Source File: gen_test.py From teleport with Apache License 2.0 | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #12
Source File: gen_test.py From tornado-zh with MIT License | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #13
Source File: gen_test.py From viewfinder with Apache License 2.0 | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #14
Source File: gen_test.py From viewfinder with Apache License 2.0 | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #15
Source File: gen_test.py From viewfinder with Apache License 2.0 | 5 votes |
def test_orphaned_callback(self): @gen.engine def f(): self.orphaned_callback = yield gen.Callback(1) try: self.run_gen(f) raise Exception("did not get expected exception") except gen.LeakedCallbackError: pass self.orphaned_callback()
Example #16
Source File: gen_test.py From viewfinder with Apache License 2.0 | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #17
Source File: gen_test.py From viewfinder with Apache License 2.0 | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #18
Source File: gen_test.py From tornado-zh with MIT License | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #19
Source File: gen_test.py From tornado-zh with MIT License | 5 votes |
def test_leaked_callback(self): @gen.engine def f(): yield gen.Callback("k1") self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)
Example #20
Source File: gen_test.py From tornado-zh with MIT License | 5 votes |
def test_orphaned_callback(self): @gen.engine def f(): self.orphaned_callback = yield gen.Callback(1) try: self.run_gen(f) raise Exception("did not get expected exception") except gen.LeakedCallbackError: pass self.orphaned_callback()
Example #21
Source File: gen_test.py From tornado-zh with MIT License | 5 votes |
def test_leaked_callback_tuple(self): @gen.engine def f(): yield gen.Callback((1, 2)) self.stop() self.assertRaises(gen.LeakedCallbackError, self.run_gen, f)