diff --git a/django/test/html.py b/django/test/html.py index 143c3728be..acdb4ffd14 100644 --- a/django/test/html.py +++ b/django/test/html.py @@ -83,6 +83,8 @@ class Element(object): return False return True + __hash__ = object.__hash__ + def __ne__(self, element): return not self.__eq__(element)