Skip to content

Fix Windows file-locking error#86

Open
DrVinay wants to merge 1 commit into
NVlabs:mainfrom
DrVinay:delete-csv-for-windows
Open

Fix Windows file-locking error#86
DrVinay wants to merge 1 commit into
NVlabs:mainfrom
DrVinay:delete-csv-for-windows

Conversation

@DrVinay

@DrVinay DrVinay commented May 13, 2026

Copy link
Copy Markdown

On Windows, open file handles cannot be deleted, unlike Linux. System opened a temporary CSV log file but had no close() method, causing os.unlink() to fail in tests.

Changes made:
Added System.close() to system.py to release the CSV log handle
Updated test_create_system_registry.py to initialize system = None before try, then call system.close() in finally before unlinking the temp file.

This fixes the cross-platform inconsistency where tests passed in Linux CI but failed locally on Windows.

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.

1 participant