Skip to content

TST GH26807 Break up pandas/tests/io/pytables/test_store.py #39072

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 13 commits into from
Jan 13, 2021

Conversation

moink
Copy link
Member

@moink moink commented Jan 9, 2021

This PR addresses xref #26807 for pandas/tests/io/pytables/test_store.py, which was more than 5000 lines before this attempt. I made a new directory pandas/tests/io/pytables/store/ to put all the new modules in. I tried to 1) get all the new modules below 1000 lines and 2) break it up in a somewhat logical way, but let's see if I succeeded in the opinion of the reviewer.

There were 194 tests in pandas/tests/io/pytables/test_store.py, and now there are 194 tests in pandas/tests/io/pytables/store so I haven't gained or lost any. One is skipped on my dev machine.

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

@pep8speaks
Copy link

pep8speaks commented Jan 9, 2021

Hello @moink! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 688:9: E741 ambiguous variable name 'l'

Comment last updated at 2021-01-13 17:00:26 UTC

@moink moink added IO HDF5 read_hdf, HDFStore Code Style Code style, linting, code_checks Testing pandas testing functions or related to the test suite labels Jan 9, 2021
@jreback
Copy link
Contributor

jreback commented Jan 9, 2021

this is a straight move right? e.g. no actual changes except to make tests / linting pass?

@moink
Copy link
Member Author

moink commented Jan 9, 2021

this is a straight move right? e.g. no actual changes except to make tests / linting pass?

Correct. I made no changes at all to the tests - just moved existing ones to other classes & modules.

@pytest.mark.filterwarnings(
"ignore:\\nthe :pandas.io.pytables.AttributeConflictWarning"
)
def test_coordinates(setup_path):
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know what's going on with this test. I had intermittent failures on my computer, and then it failed in the Windows CI. I had a really hard time trying to debug this test because the failure was intermittent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems to have a common cause with #32225

@jreback jreback added this to the 1.3 milestone Jan 13, 2021
@jreback
Copy link
Contributor

jreback commented Jan 13, 2021

looks good. can you merge master (small conflict), and show the before/after test count. ping when ready

@moink
Copy link
Member Author

moink commented Jan 13, 2021

273 tests in pandas/tests/io/pytables both before and after the changes

@jreback jreback merged commit a6bc6ec into pandas-dev:master Jan 13, 2021
@jreback
Copy link
Contributor

jreback commented Jan 13, 2021

thanks @moink

luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks IO HDF5 read_hdf, HDFStore Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants