Skip to content

Commit ec1053c

Browse files
committed
error msg
1 parent d2dc8a7 commit ec1053c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_pytest/assertion/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ def isiterable(obj: Any) -> bool:
135135
except TypeError:
136136
return False
137137
except Exception as e:
138-
raise ValueError(f"Unexpected exception {e!r} while testing object {obj!r}")
138+
raise ValueError(
139+
f"Unexpected exception {e!r} while testing object {obj!r}. Probably an issue with __iter__"
140+
)
139141

140142

141143
def has_default_eq(

0 commit comments

Comments
 (0)