Skip to content

Conversation

@Fedalto
Copy link
Contributor

@Fedalto Fedalto commented Nov 11, 2019

What was wrong?

Python is complaining with a SyntaxWarning when comparing with literals using is/is not

is and is not are identity operators, that check if they are the
same objects, which is not what we want when comparing on these cases.

How was it fixed?

Change to use == and != where appropriate

Todo:

Cute Animal Picture

`is` and `is not` are identity operators, that check if they are the
same objects, which is not what we want when comparing on these cases.
Change to use the equality operators `==` and `!=`
@Fedalto
Copy link
Contributor Author

Fedalto commented Nov 11, 2019

The CI is failing with this change, which probably mean that it have uncovered a test that was passing before when it should be failing.
But I don't have the context to know how to fix it.

@kclowes
Copy link
Collaborator

kclowes commented Nov 11, 2019

Thanks @Fedalto. It looks like a bug to me too. I'll take a look!

Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

Thanks @Fedalto! Turns out the maxMessageSize and the minPow was still set from the test before.

@kclowes kclowes merged commit c3be0f9 into ethereum:master Nov 14, 2019
@Fedalto Fedalto deleted the fix_syntax_warnings branch November 17, 2019 23:41
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