Skip to content

Commit 767838f

Browse files
committed
fix attrs==25.2.0 compatibility
1 parent d149ab3 commit 767838f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/assertion/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def has_default_eq(
169169
code_filename = obj.__eq__.__code__.co_filename
170170

171171
if isattrs(obj):
172-
return "attrs generated eq" in code_filename
172+
return "attrs generated " in code_filename
173173

174174
return code_filename == "<string>" # data class
175175
return True

0 commit comments

Comments
 (0)