Skip to content

Conversation

mroeschke
Copy link
Member

When running these tests (on the cuDF side particularly) and assertions like tm.assert_extension_array_equal raises and prints the values of the left vs right results, printing 200 elements can be visually distracting to easily pinpoint the difference between left and right. I couldn't find a particular reason why the input data needs to be 100 elements, so I reduced it to 10 to reduce the visual noise. A minor benefit is that these tests should run a little faster since we're testing and constructing less data.

Probably as an improvement, a fixture like num_elements should exist to more independently toggle the input length of the EAs.

@mroeschke mroeschke added this to the 3.0 milestone Sep 22, 2025
@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Sep 22, 2025
@mroeschke mroeschke changed the title TST: Reduce extensionarray data length from 100 to 10 TST: Reduce ExtensionArray data testing length from 100 to 10 Sep 22, 2025
@jbrockmendel jbrockmendel merged commit f6fa9b6 into pandas-dev:main Sep 22, 2025
42 checks passed
@jbrockmendel
Copy link
Member

Thanks @mroeschke

@mroeschke mroeschke deleted the tsts/extension/short branch September 22, 2025 23:17
m-richards added a commit to m-richards/geopandas that referenced this pull request Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants