Yon*_*aum 6 debugging python-3.x ipdb ubuntu-18.04
我有一个在 Ubuntu 16 上运行良好的 Python 代码。我安装了 Ubuntu 18,现在当我在执行 unitest 时尝试调试代码时,每次按“n”或“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
Run Code Online (Sandbox Code Playgroud)
我使用 python 3.7.5
我如何摆脱这个警告?不可能那样工作
| 归档时间: |
|
| 查看次数: |
352 次 |
| 最近记录: |