fixing tests
This commit is contained in:
parent
31f42ef83f
commit
a67c547536
|
@ -149,9 +149,11 @@ def has_default_eq(
|
||||||
return True
|
return True
|
||||||
|
|
||||||
code_filename = obj.__eq__.__code__.co_filename
|
code_filename = obj.__eq__.__code__.co_filename
|
||||||
|
|
||||||
if isattrs(obj):
|
if isattrs(obj):
|
||||||
return "attrs eq generated" in code_filename
|
return "attrs generated eq" in code_filename
|
||||||
return code_filename == "<string>" # dataclass
|
|
||||||
|
return code_filename == "<string>" # data class
|
||||||
|
|
||||||
|
|
||||||
def assertrepr_compare(config, op: str, left: Any, right: Any) -> Optional[List[str]]:
|
def assertrepr_compare(config, op: str, left: Any, right: Any) -> Optional[List[str]]:
|
||||||
|
|
Loading…
Reference in New Issue