Repository navigation
Conversation
jsignell
reviewed
Sep 18, 2020
jsignell
left a comment
Member
There was a problem hiding this comment.
I have some suggestions for how to simplify, but thanks for writing these up! To make both tests pass you can run it with PYTHONHASHSEED set:
env PYTHONHASHSEED=42 pytest -k test_bag_groupbyCo-authored-by: Julia Signell <[email protected]>
Co-authored-by: Julia Signell <[email protected]>
Member
|
Ok thanks @lazarillo! I am happy with the new tests. I am not quite sure we want so many TODO comments in the bag code, but they don't really hurt. It could be a nice exercise for someone to go through and write tests for all of them. |
2 tasks
Member
|
Closing in favor of #6660 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests added:
test_bag_groupby_pure_hash: groupby works fine with keys where the hash of the key == the key. This test just validates that this is currently correct.test_bag_groupby_normal_hash: groupby is currently failing when the hash of the key != the key. This test highlights that issue. It does not yet fix the issue, just captures it in a unit test.Passes
black dask/flake8 daskYes, I ran black dask (well, I have black-format-on-save within VS Code).