Skip to content

Conversation

@dannywillems
Copy link
Contributor

Summary

  • Replace bare open() calls with context managers (with open(...) as f:)
    to prevent resource leaks
  • Remove unnecessary str() wrapping around Path objects
  • Simplify TESTS_DIR to Path(__file__).parent, removing unused os import

Closes #25

Replace bare open() calls with context managers to prevent resource
leaks. Also simplify TESTS_DIR to Path(__file__).parent and remove
unused os import.

Closes #25
@dannywillems dannywillems merged commit d8ee8ad into main Feb 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix leaked file handles in tests

1 participant