-
Notifications
You must be signed in to change notification settings - Fork 961
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
Move test_testing.py to new cudf classic test directory structure #19481
Conversation
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) |
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.
Should we move this logic into a shared utility? test_cudf_assert_utility_follows_pandas(pd_assert_fn, cudf_assert_fn, *args, **kwargs)
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.
Sure good idea. Yeah this pattern is prevalent a lot here
Co-authored-by: Matthew Murray <41342305+Matt711@users.noreply.github.com>
…into ref/cudf/testmove2
/merge |
Description
Towards #9999
Checklist