We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 400e3bf + 71c653a commit 850b99cCopy full SHA for 850b99c
changelog/13291.bugfix.rst
@@ -0,0 +1 @@
1
+Fixed ``repr`` of ``attrs`` objects in assertion failure messages when using ``attrs>=25.2``.
src/_pytest/assertion/util.py
@@ -161,7 +161,7 @@ def has_default_eq(
161
code_filename = obj.__eq__.__code__.co_filename
162
163
if isattrs(obj):
164
- return "attrs generated eq" in code_filename
+ return "attrs generated " in code_filename
165
166
return code_filename == "<string>" # data class
167
return True
0 commit comments