summaryrefslogtreecommitdiff
path: root/django/test/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/test/html.py')
-rw-r--r--django/test/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/html.py b/django/test/html.py
index c01f73c1fb..3b55b52861 100644
--- a/django/test/html.py
+++ b/django/test/html.py
@@ -72,7 +72,7 @@ class Element:
return self.children == element.children
def __hash__(self):
- return hash((self.name,) + tuple(a for a in self.attributes))
+ return hash((self.name, *(a for a in self.attributes)))
def _count(self, element, count=True):
if not isinstance(element, str):