Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
diff --git a/Lib/unittest.py b/Lib/unittest.py
index b5a1a4b..09c6ca9 100644
--- a/Lib/unittest.py
+++ b/Lib/unittest.py
@@ -425,6 +425,9 @@
def __ne__(self, other):
return not self == other
+ # Can't guarantee hash invariant, so flag as unhashable
+ __hash__ = None
+
def __iter__(self):
return iter(self._tests)