Skip to content

Conversation

@craigh92
Copy link

Closes Issue 963

val = copy(val) # we do not want to modify object in our db, we need a copy in order to generate event
val.append(i)
var.set_value(copy(val))
time.sleep(0.2) # let last event arrive
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was too short and causing the test to occasionally fail. I have increased it to 0.3.

else:
try:
if method.InputArguments is None:
method.InputArguments = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these lines will never fail. No need to have them under try/except

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines will never fail, but the actual method call could. I have put this check in the same scope as the method call for readability. Would you prefer it outside of the try statement?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I just looked at that code. In fact we should only have try/except around the node.call line. Can you move everything else out?

@oroulet
Copy link
Member

oroulet commented Feb 18, 2020

Probably fine, but canyou add a test for that new behaviour? I am curious to know when it happend. I thought this was well supported

@oroulet
Copy link
Member

oroulet commented Mar 9, 2020

@craigh92 any news?

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.

2 participants