fixing tests

This commit is contained in:
Yuval Shimon 2021-12-12 14:45:47 +02:00
parent 31f42ef83f
commit a67c547536
1 changed files with 4 additions and 2 deletions

View File

@ -149,9 +149,11 @@ def has_default_eq(
return True
code_filename = obj.__eq__.__code__.co_filename
if isattrs(obj):
return "attrs eq generated" in code_filename
return code_filename == "<string>" # dataclass
return "attrs generated eq" in code_filename
return code_filename == "<string>" # data class
def assertrepr_compare(config, op: str, left: Any, right: Any) -> Optional[List[str]]: