forked from pool/python-pycurl
* Fixed build against libcurl < 7.64.1 (patch by Scott Talbert). * Add CURLOPT_MAXLIFETIME_CONN (patch by fsbs). * Easy handle duplication support (patch by fsbs). * Support for unsetting a number of multi options (patch by fsbs). * pycurl classes can now be subclassed (patch by fsbs). * Multi callbacks' thread state management fixed (patch by fsbs). * Add CURL_LOCK_DATA_PSL (patch by fsbs). * Add support for SecureTransport SSL backend (MacOS) (patch by Scott Talbert). * Fixed Python thread initialization causing hangs on operations (patch by Scott Talbert). * getinfo(CURLINFO_FTP_ENTRY_PATH) now handles NULL return from libcurl, returning None in this case. * Python 3.9 is now officially supported (patch by Bill Collins). * Added CURLOPT_DOH_URL (patch by resokou). * Best effort Python 2 support has been reinstated. * Added missing fields to curl_version_info struct (patch by Hasan). * Added CURLINFO_CONDITION_UNMET (patch by Dima Tisnek). * Exposed MAX_CONCURRENT_STREAMS in CurlMulti (patch by Alexandre Pion). * Compilation fixed against Python 3.10 alpha (patch by Kamil Dudka). - Remove patch curl7770_compatibility.patch and remove_nose.patch: * They have both merged upstream. - Modify patch disable_randomly_failing_tests.patch: * Use pytest rather than nose methods. - Add patch curl-789-error-message.patch: * Handle missing ! in a returned error message. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=89
68 lines
2.0 KiB
Diff
68 lines
2.0 KiB
Diff
Index: pycurl-7.45.1/tests/memory_mgmt_test.py
|
|
===================================================================
|
|
--- pycurl-7.45.1.orig/tests/memory_mgmt_test.py
|
|
+++ pycurl-7.45.1/tests/memory_mgmt_test.py
|
|
@@ -9,6 +9,7 @@ import unittest
|
|
import gc
|
|
import flaky
|
|
from . import util
|
|
+import pytest
|
|
|
|
debug = False
|
|
|
|
@@ -17,6 +18,7 @@ if sys.platform == 'win32':
|
|
else:
|
|
devnull = '/dev/null'
|
|
|
|
+@pytest.mark.occasionally_failing
|
|
@flaky.flaky(max_runs=3)
|
|
class MemoryMgmtTest(unittest.TestCase):
|
|
def maybe_enable_debug(self):
|
|
Index: pycurl-7.45.1/tests/multi_memory_mgmt_test.py
|
|
===================================================================
|
|
--- pycurl-7.45.1.orig/tests/multi_memory_mgmt_test.py
|
|
+++ pycurl-7.45.1/tests/multi_memory_mgmt_test.py
|
|
@@ -7,11 +7,13 @@ import unittest
|
|
import gc
|
|
import flaky
|
|
import weakref
|
|
+import pytest
|
|
|
|
from . import util
|
|
|
|
debug = False
|
|
|
|
+@pytest.mark.occasionally_failing
|
|
@flaky.flaky(max_runs=3)
|
|
class MultiMemoryMgmtTest(unittest.TestCase):
|
|
def test_opensocketfunction_collection(self):
|
|
Index: pycurl-7.45.1/tests/multi_timer_test.py
|
|
===================================================================
|
|
--- pycurl-7.45.1.orig/tests/multi_timer_test.py
|
|
+++ pycurl-7.45.1/tests/multi_timer_test.py
|
|
@@ -5,6 +5,7 @@
|
|
from . import localhost
|
|
import pycurl
|
|
import unittest
|
|
+import pytest
|
|
|
|
from . import appmanager
|
|
from . import util
|
|
@@ -23,6 +24,7 @@ def teardown_module(mod):
|
|
teardown_module_2(mod)
|
|
teardown_module_1(mod)
|
|
|
|
+@pytest.mark.occasionally_failing
|
|
class MultiSocketTest(unittest.TestCase):
|
|
def test_multi_timer(self):
|
|
urls = [
|
|
Index: pycurl-7.45.1/pytest.ini
|
|
===================================================================
|
|
--- pycurl-7.45.1.orig/pytest.ini
|
|
+++ pycurl-7.45.1/pytest.ini
|
|
@@ -7,3 +7,4 @@ markers =
|
|
gssapi: mark a test as requiring GSSAPI
|
|
http2: mark a test as requiring HTTP/2
|
|
standalone: mark a test as being standalone
|
|
+ occasionally_failing: mark a test as occasionally failing
|