forked from pool/python-python-daemon
- Add remove_double_patch.patch and remove_safe_hasattr.patch to
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
This commit is contained in:
15
remove_safe_hasattr.patch
Normal file
15
remove_safe_hasattr.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
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
|
||||
|
Reference in New Issue
Block a user