-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CI/TST: Use tmp_path for excel test #57516
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
Conversation
…)" This reverts commit 9c02050.
|
||
@pytest.fixture | ||
def ext(): | ||
return ".ods" | ||
|
||
|
||
def test_write_append_mode_raises(ext): | ||
@pytest.fixture | ||
def tmp_excel(ext, tmp_path): |
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.
Why is this fixture just for excel?
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.
I think our Excel code is picky about checking the file extension and hence if/how ext
is defined in our tests. I think in the general case this won't matter but there might be a better way to generalize how this is set up in our Excel tests?
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.
Sounds good. Not a blocker by any means
* Revert "CI: Run excel tests on single cpu for windows (pandas-dev#57486)" This reverts commit 9c02050. * Use tmp_path fixture * uuid4? * Don't remove, pytest cleans itself up eventually
tm.ensure_clean
doesn't ensure files are unique if the same name is passed, buttmp_path
ensures a test gets a unique temp path.