Skip to content

Conversation

@allisonportis
Copy link
Contributor

@allisonportis allisonportis commented May 29, 2019

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.

@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

Merging #569 into master will decrease coverage by 0.03%.
The diff coverage is 88.46%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
...etools/tests/entityset_tests/test_serialization.py 96.25% <88.46%> (-3.75%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26f441b...5aa3bf4. Read the comment docs.

try:
os.makedirs(path)
except OSError as e:
if e.errno != errno.EEXIST:
Copy link
Contributor

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?

Copy link
Contributor

@rwedge rwedge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@allisonportis allisonportis merged commit ec567c2 into master May 30, 2019
@rwedge rwedge mentioned this pull request Jun 19, 2019
@rwedge rwedge deleted the entity_test_makedirs branch February 19, 2021 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

entityset_tests/test_serialization.py--makedir() throwing FileExistsError

3 participants