fixing tests
This commit is contained in:
parent
31f42ef83f
commit
a67c547536
|
@ -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]]:
|
||||
|
|
Loading…
Reference in New Issue