forked from pool/python-python-daemon
16 lines
571 B
Diff
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
|
||
|
|