14
0
Files
python-python-daemon/remove_safe_hasattr.patch
2022-01-13 12:32:18 +00:00

16 lines
571 B
Diff

---
test/test_metadata.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/test/test_metadata.py
+++ b/test/test_metadata.py
@@ -44,7 +44,7 @@ class HasAttribute(testtools.matchers.Ma
def match(self, instance):
""" Assert the object `instance` has an attribute named `name`. """
result = None
- if not testtools.helpers.safe_hasattr(instance, self.attribute_name):
+ if not hasattr(instance, self.attribute_name):
result = AttributeNotFoundMismatch(instance, self.attribute_name)
return result