14
0

- 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:
2022-01-13 12:32:18 +00:00
committed by Git OBS Bridge
parent 3a486f8d92
commit fb00d6254d
4 changed files with 80 additions and 8 deletions

15
remove_safe_hasattr.patch Normal file
View 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