-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Handle empty hook file or other OSErrors #729
Conversation
Also added comment with justification
Current coverage is 99.66%
@@ master #729 diff @@
========================================
Files 13 13
Lines 583 589 +6
Methods 0 0
Messages 0 0
Branches 0 0
========================================
+ Hits 583 587 +4
- Misses 0 2 +2
Partials 0 0
|
Argh... this error might be a *nix specific thing as the same error does not appear to be thrown on Windows. The tests are failing with |
@jcarbaugh I think it looks good, but I'd like a second pair of eyes on this before merging. Can someone who has subprocess experience give this a second review? Just comment on the diff with anything that needs improvement. |
@pytest.mark.usefixtures('clean_system', 'remove_additional_folders') | ||
def test_empty_hooks(): | ||
|
||
# OSError.errno=8 is not thrown on Windows when the script is emtpy |
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.
empty
Looks fine to me, I picked a few nits though @jcarbaugh. |
Took a guess at the right way to test based on the existing tests. Let me know if anything needs to be changed!
Fixes #632.