ipython / ipython/ipython

ResourceWarning: unclosed event loop on macOS, within pytest

Open
#12,203 12 comments 9 reactions 0 assignees View on GitHub
bug debugger
Dominant language
Python
Stars
16.8k
Forks
4.5k
Avg merge
1d 2h
Merged PRs (30d)
6

Description

I just updated command line tools and macOS to `10.15.4`, I'm within a virtualenv, using `ipdb` within `pytest`, Python v. 3.7.7. Don't know if the update is related.

I'm getting the following error:
```
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 622, in __del__
source=self)
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
Exception ignored in:
ResourceWarning: unclosed
Exception ignored in:
ResourceWarning: unclosed
Exception ignored in:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 622, in __del__
source=self)
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
Exception ignored in:
ResourceWarning: unclosed
Exception ignored in:
ResourceWarning: unclosed
Exception ignored in:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 622, in __del__
source=self)
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
Exception ignored in:
ResourceWarning: unclosed
Exception ignored in:
ResourceWarning: unclosed
Exception ignored in:
Traceback (most recent call last):
```

Randomly in the `ipdb` prompt.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.