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,8 +149,10 @@ def has_default_eq(
return True
code_filename = obj.__eq__.__code__.co_filename
if isattrs(obj):
return "attrs eq generated" in code_filename
return "attrs generated eq" in code_filename
return code_filename == "<string>" # data class