Skip to content

fix: avoid temporary file locking on Windows tests - #748

Open
GouravGC wants to merge 1 commit into
ollama:mainfrom
GouravGC:fix/windows-namedtemporaryfile-tests
Open

GouravGC wants to merge 1 commit into
ollama:mainfrom
GouravGC:fix/windows-namedtemporaryfile-tests

Conversation

@GouravGC

Copy link
Copy Markdown

Summary

Fix Windows test failures caused by NamedTemporaryFile keeping files locked while they are reopened.

  • Add delete=False to the 8 affected temporary-file usages.
  • No production code was changed.

Testing

  • python -m pytest tests/test_client.py tests/test_type_serialization.py -q
  • 87 passed

This branch has not been deployed

No deployments
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