]> git.ipfire.org Git - thirdparty/tornado.git/commit
fix gen.multi with gen.moment
authorMin RK <benjaminrk@gmail.com>
Wed, 31 Jan 2018 17:08:40 +0000 (18:08 +0100)
committerMin RK <benjaminrk@gmail.com>
Wed, 31 Jan 2018 17:08:40 +0000 (18:08 +0100)
commitf4e652922553408ca0777127962f080724ce92c4
tree68226d9c34c20ce895610e4e210215fdb0935e91
parentf64470ec838a2430d5c4f7814d73bd518ade1b89
fix gen.multi with gen.moment

fixes assertion in gen.multi when calling convert_yielded with more than one gen.moment or None

convert_yielded can be called with None or [None].
When it is called with [None], gen.multi gets [gen.moment],
which fails assert(is_future) since it is no longer a real Future
tornado/gen.py
tornado/test/gen_test.py