Skip to content

Conversation

sigfrido
Copy link

Fixes the following python 3 compat warnings when we run nose tests with python -3:

  • /src/nose/nose/pyversion.py:49: DeprecationWarning: Overriding eq blocks inheritance of hash in 3.x
  • /src/nose/unit_tests/mock.py:95: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator

Here there's also a suggestion to set hash = None if we're sure instances will never be hashed: http://stackoverflow.com/questions/15471333/how-to-eliminate-a-python3-deprecation-warning-for-the-equality-operator.

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.

1 participant