-
Notifications
You must be signed in to change notification settings - Fork 42
Slices #51
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
Slices #51
Conversation
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.
Looks now good for me
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.
I'd like to have some changes.
tests/transformer/test_subscript.py
Outdated
| ref = (value, 'b') | ||
| assert ref == ret | ||
| _getitem_.assert_called_once_with(*ref) | ||
| _getitem_.reset_mock() |
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.
It would be nicer to have separate tests as it would allow to remove the reset_mock calls.
tests/transformer/test_subscript.py
Outdated
|
|
||
| ret = glb['simple_subscript'](value) | ||
| ref = (value, 'b') | ||
| assert ref == ret |
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.
Do these three lines should fit into a single line? (Same below for the other tests.) Seems easier to read for me.
Check that slice syntax works with restricted python