15
0
Files
python-cheroot/no-pypytools.patch
Matej Cepl 9f895f0a8f - Update to 8.6.0:
-  #384 via PR #385, PR #406: Exposed type stubs with
    annotations for public API
  - PR #401 (related to the PR #352 effort): Started reusing the
    the expriration_interval setting in the low-level
        select.select() invocation,
    effectively reducing the system load under the Windows OS
    when idle, that is noticeable on low-end hardware systems
- Removed upstreamed patches
  - cheroot-pr370-py310-threaddeprecations.patch
  - cheroot-pr371-py310-threaddeprecations.patch
  - cheroot-c0b1b167-py310-threaddeprecations.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=40
2022-01-21 17:49:34 +00:00

41 lines
1.2 KiB
Diff

---
cheroot/test/test_server.py | 13 -------------
1 file changed, 13 deletions(-)
--- a/cheroot/test/test_server.py
+++ b/cheroot/test/test_server.py
@@ -16,7 +16,6 @@ import requests
import requests_unixsocket
import six
-from pypytools.gc.custom import DefaultGc
from six.moves import queue, urllib
from .._compat import bton, ntob
@@ -370,13 +369,6 @@ if not IS_WINDOWS:
@pytest.fixture
-def _garbage_bin():
- """Disable garbage collection when this fixture is in use."""
- with DefaultGc().nogc():
- yield
-
-
-@pytest.fixture
def resource_limit(request):
"""Set the resource limit two times bigger then requested."""
resource = pytest.importorskip(
@@ -405,11 +397,6 @@ def resource_limit(request):
@pytest.fixture
def many_open_sockets(request, resource_limit):
"""Allocate a lot of file descriptors by opening dummy sockets."""
- # NOTE: `@pytest.mark.usefixtures` doesn't work on fixtures which
- # NOTE: forces us to invoke this one dynamically to avoid having an
- # NOTE: unused argument.
- request.getfixturevalue('_garbage_bin')
-
# Hoard a lot of file descriptors by opening and storing a lot of sockets
test_sockets = []
# Open a lot of file descriptors, so the next one the server