Fix permission errors w/ readonly tmpdirs and pytest 7.3#4122
Fix permission errors w/ readonly tmpdirs and pytest 7.3#4122
Conversation
Linter Bot Results:Hi @IAlibay! Thanks for making this PR. We linted your code and found the following: Some issues were found with the formatting of your code.
Please have a look at the Please note: The |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #4122 +/- ##
===========================================
+ Coverage 93.58% 93.59% +0.01%
===========================================
Files 192 192
Lines 25134 25134
Branches 4056 4056
===========================================
+ Hits 23521 23524 +3
+ Misses 1094 1092 -2
+ Partials 519 518 -1 see 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
@MDAnalysis/coredevs this will need to take priority for merging so that we can get CI working again. |
orbeckst
left a comment
There was a problem hiding this comment.
ugly but ok, please see comment.
Happy Easter!
Azure pipelines has been failing recently (see #4121 ), due to the latest pytest 7.3 release.
The source of the error seems to be a mixture of windows, python 3.9, pytest and pathlib incompatibilities when trying to clean up temporary directories that have been set to read-only.
To fix this, here we just conclude the one affected test by re-enabling write permissions to the directory and removing it ahead of the test completing.
PR Checklist
📚 Documentation preview 📚: https://readthedocs-preview--4122.org.readthedocs.build/en/4122/