]> git.ipfire.org Git - thirdparty/tornado.git/commit
Avoid spurious warnings at shutdown
authorAntoine Pitrou <antoine@python.org>
Tue, 15 Nov 2016 09:38:18 +0000 (10:38 +0100)
committerAntoine Pitrou <antoine@python.org>
Tue, 15 Nov 2016 09:38:18 +0000 (10:38 +0100)
commitd49e5e8774840bfe48397e316215f659c2fb8abf
tree71507777e1391ddcbea4cd5f0151540d3aafeb60
parent9bdc3176741114ffeb1048bded5d77d9e4337bbd
Avoid spurious warnings at shutdown

When there are still active coroutines at interpreter shutdown, you can
see sometimes warnings such as:

Exception ignored in: <bound method Future.__del__ of <tornado.concurrent.Future object at 0x7f56a8b142e8>>
Traceback (most recent call last):
  File "/home/antoine/tornado/tornado/concurrent.py", line 338, in __del__
TypeError: 'NoneType' object is not callable

These are distracting and don't bear any useful information, so silence them.
tornado/concurrent.py
tornado/test/concurrent_test.py
tornado/test/util_test.py
tornado/util.py