forked from pool/python-pycurl
- Add make-py2-compat.patch to pass tests on Leap 15.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=75
This commit is contained in:
22
make-py2-compat.patch
Normal file
22
make-py2-compat.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
tests/curl_object_test.py | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
--- a/tests/curl_object_test.py
|
||||
+++ b/tests/curl_object_test.py
|
||||
@@ -143,11 +143,11 @@ class CurlObjectTest(unittest.TestCase):
|
||||
# change does not affect objects created later
|
||||
obj3 = cls()
|
||||
self.assertEqual(old_value, getattr(obj3, name))
|
||||
-
|
||||
+
|
||||
def test_bogus_attribute_access(self):
|
||||
- with pytest.raises(AttributeError, match='trying to obtain.*'):
|
||||
- self.curl.foo
|
||||
-
|
||||
+ with pytest.raises(AttributeError):
|
||||
+ self.curl.foo
|
||||
+
|
||||
def test_bogus_attribute_delete(self):
|
||||
with pytest.raises(AttributeError, match='trying to delete.*'):
|
||||
del self.curl.foo
|
Reference in New Issue
Block a user