Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Fix Windows permission error on merge test (#1952)
For some reason, Windows CI suddenly started throwing permission errors on test_merge_layers. These errors occur when using the TempDirectory() context manager, which raises a PermissionError on Windows when it tries to clean up after itself. Therefore, this context manager is now avoided in favor of manual clean up. More context: I investigated this issue first in #1947. My suspicion that this could be caused by a new pytest version was not confirmed. Maybe the reason is that GH rolled out a new Windows worker, not sure. Also note that this is not the first time that this workaround is required, e.g. also here: https://github.com/huggingface/peft/blob/e6cd24c907565040ee1766a5735afe3d13a71164/tests/test_custom_models.py#L1465
- Loading branch information