Skip to content

TST/CLN: Fix/clean pytables test #23732

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

Merged
merged 1 commit into from
Nov 17, 2018

Conversation

h-vetinari
Copy link
Contributor

While working on #23731, I sometimes got a failing test for pytables -- based on the rest of the test, it seemed pretty clear that the _maybe_remove(store, 'xx') was not consistently used throughout the test, and so I thought I'd add it. I'm guessing the CI never hits this failure because it seems it would need more replications for that.

@pep8speaks
Copy link

Hello @h-vetinari! Thanks for submitting the PR.

@h-vetinari
Copy link
Contributor Author

Failure is due to #23726

@jreback
Copy link
Contributor

jreback commented Nov 16, 2018

not sure this actually solves a problem.

@h-vetinari
Copy link
Contributor Author

As I laid out in the OP, this solves a flaky test that doesn't fail in the CI (clean image every time), but it failed about 10x for me locally, and it was obvious from the error that the same input hat been written to a store key twice. Hence adding the _maybe_remove consistently.

It's a small change, but why not make the test suite more stable?

@gfyoung gfyoung added Testing pandas testing functions or related to the test suite IO Data IO issues that don't fit into a more specific label labels Nov 16, 2018
@jreback jreback added this to the 0.24.0 milestone Nov 17, 2018
@jreback
Copy link
Contributor

jreback commented Nov 17, 2018

ok I don't think these actually fix anything, but can't hur

that original function should be a contextmanager anyhow (welcome PR on that).

@jreback jreback merged commit 001a05f into pandas-dev:master Nov 17, 2018
@h-vetinari h-vetinari deleted the fix_pytables_test branch November 18, 2018 12:04
tm9k1 pushed a commit to tm9k1/pandas that referenced this pull request Nov 19, 2018
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Data IO issues that don't fit into a more specific label Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants