I have a python code that workes well on Ubuntu 16. I installed Ubuntu 18 and now when I try to debug the code while doing unitest I get the following warning each time I press 'n' or 's':
ipdb> /usr/lib/python3.7/asyncio/base_events.py:618: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
I use python 3.7.5
How do I get rid of this warning? Its impossible to work like that
Running with python -W ignore script.py
worked to get rid of this while debugging.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With