-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: test explicit copy keyword with CoW enabled #50536
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
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4f4f663
TST: test explicit copy keyword with CoW enabled
jorisvandenbossche e4623f5
fixup test
jorisvandenbossche 5cbfc29
Merge remote-tracking branch 'upstream/main' into cow-copy-keyword
jorisvandenbossche 3cc360a
undo previous changes
jorisvandenbossche 2fa9007
Merge remote-tracking branch 'upstream/main' into cow-copy-keyword
jorisvandenbossche ac7a222
single parametrized test
jorisvandenbossche dd458f7
fix rebase
jorisvandenbossche 12a41d3
add more methods
jorisvandenbossche 7ece5fd
add time related methods
jorisvandenbossche 3ec49a4
add set_flags
jorisvandenbossche 3c8a785
Merge remote-tracking branch 'upstream/main' into cow-copy-keyword
jorisvandenbossche e679998
add swapaxes
jorisvandenbossche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
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.
The current PR experiments with combining testing the
copy=True/False/None
keyword in those tests that we have been adding to test the CoW behaviour of those methods.Combining it would give the least duplication, but, I have to say that the
if
expressions are getting quite complicated and hard to follow ..For example here
if (using_copy_on_write and copy is not True) or copy is False
and belowif using_copy_on_write or copy is not False
andif using_copy_on_write and copy is not True
, all slightly different.