forked from pool/python-python-daemon
fix https://pagure.io/python-daemon/issue/53 - Remove pytest as the test runner (apparently, the package requires python3 -munittest discovery). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-daemon?expand=0&rev=32
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
|
|
|