Skip to content

Conversation

@dwt
Copy link
Contributor

@dwt dwt commented May 3, 2017

Check that slice syntax works with restricted python

@icemac icemac self-requested a review May 3, 2017 08:39
Copy link
Member

@loechel loechel left a 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

Copy link
Member

@icemac icemac left a 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.

ref = (value, 'b')
assert ref == ret
_getitem_.assert_called_once_with(*ref)
_getitem_.reset_mock()
Copy link
Member

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.


ret = glb['simple_subscript'](value)
ref = (value, 'b')
assert ref == ret
Copy link
Member

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.

@icemac icemac merged commit 4d1b2a2 into Python3_update May 3, 2017
@icemac icemac deleted the slices branch May 3, 2017 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants