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
Fixed testing issue with residual directories causing FileExistsError for makedirs() #569
Conversation
Codecov Report
@@ Coverage Diff @@
## master #569 +/- ##
==========================================
- Coverage 96.46% 96.43% -0.04%
==========================================
Files 117 117
Lines 9511 9505 -6
==========================================
- Hits 9175 9166 -9
- Misses 336 339 +3
Continue to review full report at Codecov.
|
try: | ||
os.makedirs(path) | ||
except OSError as e: | ||
if e.errno != errno.EEXIST: |
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.
could you add a comment describing what EEXIST
refers to?
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.
Looks good
Fix #565
Resolved by adding fixture that creates the path and makes the directory, yields the path, and removes the path folder in the finalization code.