These lines are not reached, but if they were they would fail with
a less clear message than intended.
Closes #520.
def f():
try:
yield gen.Wait("k1")
- raise "did not get expected exception"
+ raise Exception("did not get expected exception")
except gen.UnknownKeyError:
pass
self.stop()
def f():
try:
yield gen.Wait("k1")
- raise "did not get expected exception"
+ raise Exception("did not get expected exception")
except gen.UnknownKeyError:
pass
(yield gen.Callback("k2"))("v2")
self.orphaned_callback = yield gen.Callback(1)
try:
self.run_gen(f)
- raise "did not get expected exception"
+ raise Exception("did not get expected exception")
except gen.LeakedCallbackError:
pass
self.orphaned_callback()