Skip to content

Move test_testing.py to new cudf classic test directory structure #19481

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 6 commits into from
Jul 24, 2025

Conversation

mroeschke
Copy link
Contributor

Description

Towards #9999

  • Adding more shared fixtures in conftest.py where applicable
  • Further simplify tests

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke self-assigned this Jul 23, 2025
@mroeschke mroeschke requested a review from a team as a code owner July 23, 2025 22:11
@mroeschke mroeschke added Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function labels Jul 23, 2025
@mroeschke mroeschke requested review from vyasr and Matt711 July 23, 2025 22:11
@mroeschke mroeschke added the non-breaking Non-breaking change label Jul 23, 2025
@GPUtester GPUtester moved this to In Progress in cuDF Python Jul 23, 2025
Comment on lines 25 to 34
try:
pd.testing.assert_index_equal(pidx1, pidx2, exact=exact)
except BaseException as e:
kind = type(e)

if kind is not None:
with pytest.raises(kind):
assert_index_equal(idx1, idx2, exact=exact)
else:
assert_index_equal(idx1, idx2, exact=exact)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move this logic into a shared utility? test_cudf_assert_utility_follows_pandas(pd_assert_fn, cudf_assert_fn, *args, **kwargs)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure good idea. Yeah this pattern is prevalent a lot here

@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit d171390 into rapidsai:branch-25.10 Jul 24, 2025
90 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in cuDF Python Jul 24, 2025
@mroeschke mroeschke deleted the ref/cudf/testmove2 branch July 24, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants