Skip to content

Tests: make sure temporary files are pre-closed #507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

erlend-aasland
Copy link
Contributor

Windows fails with a permission error if the temporary file is already
opened.

Fixes #501

Windows fails with a permission error if the temporary file is already
opened.

Fixes canopen-python#501
@erlend-aasland
Copy link
Contributor Author

@sveinse, can you see if this mitigates the problems you experienced?

@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.78%. Comparing base (3aa509d) to head (fe6eb35).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #507   +/-   ##
=======================================
  Coverage   68.78%   68.78%           
=======================================
  Files          26       26           
  Lines        3117     3117           
  Branches      526      526           
=======================================
  Hits         2144     2144           
  Misses        835      835           
  Partials      138      138           

Copy link
Collaborator

@sveinse sveinse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erlend-aasland I confirm that this PR fixes the issue on Windows. Approving.

@sveinse sveinse merged commit 55d870e into canopen-python:master Jul 10, 2024
3 checks passed
@erlend-aasland erlend-aasland deleted the ci/fix-windows branch July 10, 2024 21:30
@erlend-aasland
Copy link
Contributor Author

Thanks for the reviews!

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.

pytest fails on master due to TestEDS.test_export_eds_to_file
4 participants