You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix test_defaults_cfg_creation Windows cleanup issue
On Windows, TemporaryDirectory cannot be deleted if it's the current
working directory. The test was doing os.chdir(tmpdir) but never
restoring the original directory, causing cleanup to fail with:
PermissionError: The process cannot access the file because it is
being used by another process
Fix: Save original cwd and restore it in finally block before
TemporaryDirectory context manager exits.
Fixes Windows CI test failure.
0 commit comments