OpenFreeEnergy / OpenFreeEnergy/openfe

Running `pytest -v --pyargs openfe openfecli` leaves open too many files

Open
#1,548 5 comments 2 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.