I am getting multiple emissons of ResourceWarnings
when using third party python modules say numpy or tornado. Without editing source code from third party modules, how can we effectively prevent ResourceWarnings
from being displayed on terminal, as they are a lot.
I have tried solutions offered from this thread How to disable python warnings to no avail
The ResourceWarning
being emmitted is as follows
/usr/local/lib/python3.5/dist-packages/tornado/gen.py:1154: ResourceWarning: unclosed <socket.socket fd=120, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
self.future, inner)
PS: These are not my warnings from my code, its from third party modules, making it harder to suppress them in python3.5.