-
Notifications
You must be signed in to change notification settings - Fork 32
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
wrap atomic_write preserving permissions of mets.xml #625
Conversation
tests/test_workspace.py
Outdated
ws = self.resolver.workspace_from_nothing(tempdir) | ||
ws.save_mets() | ||
mets_path = join(ws.directory, 'mets.xml') | ||
assert filemode(stat(mets_path).st_mode) == '-rw-rw-r--' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails for me:
FAILED tests/test_workspace.py::TestWorkspace::test_mets_permissions - AssertionError: assert '-rw-r--r--' == '-rw-rw-r--'
I am afraid that it won't work without using umask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stweil Can you test again with f92c5a3? This incorporates your umask
approach from #608 with a workaround by @pabs3 from untitaker/python-atomicwrites#42
Codecov Report
@@ Coverage Diff @@
## master #625 +/- ##
==========================================
+ Coverage 84.72% 85.00% +0.28%
==========================================
Files 52 52
Lines 2952 2975 +23
Branches 575 577 +2
==========================================
+ Hits 2501 2529 +28
+ Misses 336 332 -4
+ Partials 115 114 -1
Continue to review full report at Codecov.
|
Please note the security and other issues mentioned in the python- tomicwrites issue.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
Noted. We're using atomicwrites to avoid |
No description provided.