OpenFreeEnergy / OpenFreeEnergy/openfe
Running `pytest -v --pyargs openfe openfecli` leaves open too many files
Open
@mikemhenry is already working on this.
Since Oct 14, 2025.
priority:medium
- Dominant language
- Python
- Stars
- 331
- Forks
- 56
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 13
Description
After I installed the linux 1.6.1 single file installer, I wanted to make sure things were working and used: pytest -v --pyargs openfe openfecli to test the install. I ended up with many tests failing due to too many open files (OSError: [Errno 24] Too many open files).
We need to make sure that we don't leave files open. My guess is either our pytest fixtures are the problem or we have some util function that is leaving files handles open (like maybe our pooch stuff for example).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.