Skip to content
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

Make doctest resilient to changes in cupy reprs #4945

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Make doctest resilient to changes in cupy reprs #4945

merged 1 commit into from
Oct 26, 2022

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Oct 25, 2022

Depending on the cupy package in use (varies by version, architecture, etc) the exact name of the ndarray object may be cupy.ndarray or something like cupy._core.core.ndarray instead. Using isinstance avoids doctest failures due to those sorts of instabilities.

@vyasr vyasr added bug Something isn't working 3 - Ready for Review Ready for review by team Cython / Python Cython or Python issue labels Oct 25, 2022
@vyasr vyasr requested a review from a team as a code owner October 25, 2022 16:36
@vyasr vyasr self-assigned this Oct 25, 2022
@vyasr vyasr added the non-breaking Non-breaking change label Oct 25, 2022
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.12@68cc06f). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.12    #4945   +/-   ##
===============================================
  Coverage                ?   79.46%           
===============================================
  Files                   ?      183           
  Lines                   ?    11618           
  Branches                ?        0           
===============================================
  Hits                    ?     9232           
  Misses                  ?     2386           
  Partials                ?        0           
Flag Coverage Δ
dask 46.10% <0.00%> (?)
non-dask 68.92% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wphicks
Copy link
Contributor

wphicks commented Oct 26, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 921b5ee into rapidsai:branch-22.12 Oct 26, 2022
@vyasr vyasr deleted the fix/doctest_cupy branch November 1, 2022 06:06
jakirkham pushed a commit to jakirkham/cuml that referenced this pull request Feb 27, 2023
Depending on the cupy package in use (varies by version, architecture, etc) the exact name of the `ndarray` object may be `cupy.ndarray` or something like `cupy._core.core.ndarray` instead. Using `isinstance` avoids doctest failures due to those sorts of instabilities.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - William Hicks (https://github.com/wphicks)

URL: rapidsai#4945
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants