support openssl 3.2+ - avoid deprecation warnings for 3.13 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cheroot?expand=0&rev=65
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
---
|
|
cheroot/test/test_server.py | 13 -------------
|
|
1 file changed, 13 deletions(-)
|
|
|
|
Index: cheroot-10.0.1/cheroot/test/test_server.py
|
|
===================================================================
|
|
--- cheroot-10.0.1.orig/cheroot/test/test_server.py
|
|
+++ cheroot-10.0.1/cheroot/test/test_server.py
|
|
@@ -13,8 +13,6 @@ import pytest
|
|
import requests
|
|
import requests_unixsocket
|
|
|
|
-from pypytools.gc.custom import DefaultGc
|
|
-
|
|
from .._compat import bton, ntob
|
|
from .._compat import IS_LINUX, IS_MACOS, IS_WINDOWS, SYS_PLATFORM
|
|
from ..server import IS_UID_GID_RESOLVABLE, Gateway, HTTPServer
|
|
@@ -410,13 +408,6 @@ if not IS_WINDOWS and not ISSUE511:
|
|
|
|
|
|
@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(
|
|
@@ -445,11 +436,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
|