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
|