-
Notifications
You must be signed in to change notification settings - Fork 58
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
Use flock for the feed lock file instead of just looking for existence. #257
Conversation
Use Path.open() instead of open() Update test to use the mocked assert_called_once()
Codecov Report
@@ Coverage Diff @@
## master #257 +/- ##
==========================================
+ Coverage 82.26% 82.33% +0.06%
==========================================
Files 9 9
Lines 1438 1455 +17
==========================================
+ Hits 1183 1198 +15
- Misses 255 257 +2
Continue to review full report at Codecov.
|
ospd_openvas/lock.py
Outdated
try: | ||
self._fd.close() | ||
self._fd = None | ||
except (AttributeError, TypeError): |
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.
Can't self._fd.close()
raise other errors then AttributeError or TypeError ?
No description provided.