Skip to content

Conversation

@oliver-sanders
Copy link
Member

Fix an unclosed file handle by addressing an ancient TODO.

The unclosed file handle is reported as a Python warning, try running:

$ PYTHONWARNINGS=all cylc vip

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • Changelog entry included if this is a change that can affect users - no symptoms observed thus far
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@oliver-sanders oliver-sanders added this to the 8.6.x milestone Nov 12, 2025
@oliver-sanders oliver-sanders self-assigned this Nov 12, 2025
# Note that simply reassigning the sys streams is not sufficient
# if we import modules that write to stdin and stdout from C
# code - evidently the subprocess module is in this category!
# TODO: close resource? atexit?
Copy link
Member Author

@oliver-sanders oliver-sanders Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Good idea!

@oliver-sanders oliver-sanders modified the milestones: 8.6.x, 8.6.3 Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant