mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-03-16 13:27:11 +08:00
Fixes #3477 The LoadImage and LoadImageMask nodes opened image files but did not close them after processing. This kept file handles open, preventing other processes from accessing the files. Added try/finally blocks to ensure img.close() is called after processing completes.
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/