-
Notifications
You must be signed in to change notification settings - Fork 333
fix skip in test_core
when no GPU available
#752
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
Conversation
Codecov ReportBase: 99.58% // Head: 99.58% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #752 +/- ##
==========================================
- Coverage 99.58% 99.58% -0.01%
==========================================
Files 81 81
Lines 12742 12741 -1
==========================================
- Hits 12689 12688 -1
Misses 53 53
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. |
@seanlaw |
test_core
when no GPU available
Hmm, perhaps, I think we should move the functions into
I don't see an easy way to know what the difference in the number of skipped tests would be without re-running all of the before and after tests. Hmmm.... |
I totally agree with this! I will create
If I find something regarding this matter, I will share it with you. |
I probably should've paid closer attention to this when I was reviewing but I see that you've fixed that now in the latest commit. However, now that we've fixed that, instead of splitting it off into ===== I understand what you are trying to do here but this section seems out of place within the test file:
Specifically, the imports using Then, you can simply do:
===== Unrelated: What is concerning is that our reporting didn't explicitly tell us that the entire
So, I've changed the |
@seanlaw
Sure. I will keep it. I think you are trying to do some sort of trade-off in your mind to see if it is worth it to put a few
Thank you for the suggestion! I've moved the if-else logic to the
I merged the changes and ran tests locally. The pytest result's report is good 👍 A couple of notes:
|
f6fe76f
to
4fd9444
Compare
Sounds good
Yeah, I forgot that we had a mixture in
I will find some time to do that |
It looks cleaner already! |
@seanlaw So, please let me know if there is anything left to do. If we are good here, feel free to merge this after the test suite finishes. |
Thanks @NimaSarajpoor! |
After moving the two functions
_gpu_searchsorted_left
and_gpu_searchsorted_right
tocore.py
in PR #714 , I modifiedtest_core.py
. However, my modification resulted in skipping the whole unit testtest_core.py
when there is no GPU.This PR fixes this issue.