]> git.ipfire.org Git - thirdparty/tornado.git/commit
testing: Cancel all pending coroutines in tearDown
authorBen Darnell <ben@bendarnell.com>
Mon, 10 Dec 2018 03:16:33 +0000 (22:16 -0500)
committerBen Darnell <ben@bendarnell.com>
Sat, 29 Dec 2018 03:17:57 +0000 (22:17 -0500)
commita237a995a1d54ad6e07c1ecdf5103ff8f45073b5
tree2a3c0515c0d6024e2afdf24ffd2dab195f33951d
parentae9a2da9d38834bb4af5fcca8524c80b879916e9
testing: Cancel all pending coroutines in tearDown

It's difficult to synchronize test shutdown with the exits of all
coroutines, so explicitly cancel all native coroutines (which are
spammy when allowed to be GC'd).

Suppress logging of CancelledErrors in IOLoop.
tornado/http1connection.py
tornado/ioloop.py
tornado/iostream.py
tornado/test/httpclient_test.py
tornado/test/testing_test.py
tornado/testing.py