-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
TST: Improve runtime of some unit tests #62968
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
base: main
Are you sure you want to change the base?
Conversation
| warning_type = DtypeWarning | ||
| # Use larger size to hit warning path | ||
| size = 499999 | ||
| size = heuristic - 1 |
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.
the comment above makes me think in this case size was made bigger. now you're making it smaller. am i interpreting the comment wrong?
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.
Fair point, the comment becomes outdated with this change. I'll update it.
For reference, I'm using the same technique used in the test above, test_chunks_have_consistent_numerical_type, to patch DEFAULT_BUFFER_HEURISTIC so we don't have to run a test with so much data to hit a condition.
@pytest.mark.slowtopandas/tests/indexing/multiindex/test_indexing_slow.pytest_read_csv_memory_growth_chunksizeremoved as it's already covered by an ASVReadCSVMemoryGrowthtest_memory_leakmore specific to checking a reference cycle