Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_send_timeout fails on ppc64le #987

@mcepl

Description

@mcepl

While packaging this for openSUSE/Factory (commit 8637820), I have noticed this failure on ppc64le architecture (seems like working on others):

[   91s] =================================== FAILURES ===================================
[   91s] ______________________ TestGreenSocket.test_send_timeout _______________________
[   91s] 
[   91s] self = <tests.greenio_test.TestGreenSocket testMethod=test_send_timeout>
[   91s] 
[   91s]     def test_send_timeout(self):
[   91s]         self.reset_timeout(2)
[   91s]         listener = bufsized(eventlet.listen(('', 0)))
[   91s]     
[   91s]         evt = event.Event()
[   91s]     
[   91s]         def server():
[   91s]             # accept the connection in another greenlet
[   91s]             sock, addr = listener.accept()
[   91s]             sock = bufsized(sock)
[   91s]             evt.wait()
[   91s]     
[   91s]         gt = eventlet.spawn(server)
[   91s]     
[   91s]         addr = listener.getsockname()
[   91s]     
[   91s]         client = bufsized(greenio.GreenSocket(socket.socket()))
[   91s]         client.connect(addr)
[   91s]     
[   91s]         client.settimeout(0.00001)
[   91s]         msg = b"A" * 100000  # large enough number to overwhelm most buffers
[   91s]     
[   91s]         # want to exceed the size of the OS buffer so it'll block in a
[   91s]         # single send
[   91s]         def send():
[   91s]             for x in range(10):
[   91s]                 client.send(msg)
[   91s]     
[   91s] >       expect_socket_timeout(send)
[   91s] 
[   91s] tests/greenio_test.py:209: 
[   91s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[   91s] 
[   91s] function = <function TestGreenSocket.test_send_timeout.<locals>.send at 0x7fff7d5eb2e0>
[   91s] args = ()
[   91s] 
[   91s]     def expect_socket_timeout(function, *args):
[   91s]         try:
[   91s]             function(*args)
[   91s] >           raise AssertionError("socket.timeout not raised")
[   91s] E           AssertionError: socket.timeout not raised
[   91s] 
[   91s] tests/greenio_test.py:39: AssertionError
[   91s] =============================== warnings summary ===============================
[   91s] tests/api_test.py: 2 warnings
[   91s] tests/convenience_test.py: 2 warnings
[   91s] tests/greenio_test.py: 1 warning
[   91s] tests/ssl_test.py: 26 warnings
[   91s] tests/websocket_test.py: 2 warnings
[   91s] tests/wsgi_test.py: 8 warnings
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/green/ssl.py:97: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
[   91s]     context = _original_sslcontext(protocol=ssl_version)
[   91s] 
[   91s] tests/not_asyncio_test.py::test_spawn_from_coroutine_errors
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/tests/not_asyncio_test.py:22: RuntimeWarning: coroutine 'test_spawn_from_coroutine_errors.<locals>.go' was never awaited
[   91s]     with pytest.raises(RuntimeError):
[   91s]   Enable tracemalloc to get traceback where the object was allocated.
[   91s]   See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
[   91s] 
[   91s] tests/openssl_test.py::test_import
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/green/OpenSSL/crypto.py:1: DeprecationWarning: X509Extension support in pyOpenSSL is deprecated. You should use the APIs in cryptography.
[   91s]     from OpenSSL.crypto import *
[   91s] 
[   91s] tests/openssl_test.py::test_import
[   91s] tests/openssl_test.py::test_import
[   91s] tests/openssl_test.py::test_import
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/green/OpenSSL/crypto.py:1: DeprecationWarning: CSR support in pyOpenSSL is deprecated. You should use the APIs in cryptography.
[   91s]     from OpenSSL.crypto import *
[   91s] 
[   91s] tests/openssl_test.py::test_import
[   91s] tests/openssl_test.py::test_import
[   91s] tests/openssl_test.py::test_import
[   91s] tests/openssl_test.py::test_import
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/green/OpenSSL/crypto.py:1: DeprecationWarning: CRL support in pyOpenSSL is deprecated. You should use the APIs in cryptography.
[   91s]     from OpenSSL.crypto import *
[   91s] 
[   91s] tests/openssl_test.py::test_import
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/green/OpenSSL/crypto.py:1: DeprecationWarning: sign() is deprecated. Use the equivalent APIs in cryptography.
[   91s]     from OpenSSL.crypto import *
[   91s] 
[   91s] tests/openssl_test.py::test_import
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/green/OpenSSL/crypto.py:1: DeprecationWarning: verify() is deprecated. Use the equivalent APIs in cryptography.
[   91s]     from OpenSSL.crypto import *
[   91s] 
[   91s] tests/ssl_test.py::SSLTest::test_context_wrapped_accept
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/tests/ssl_test.py:332: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
[   91s]     context = ssl.SSLContext(ssl.PROTOCOL_TLS)
[   91s] 
[   91s] tests/wsgi_test.py::TestHttpd::test_disable_header_name_capitalization
[   91s]   /home/abuild/rpmbuild/BUILD/eventlet-0.37.0+git.1726056572.8637820/eventlet/greenthread.py:265: DeprecationWarning: capitalize_response_headers is disabled.
[   91s]    Please, make sure you know what you are doing.
[   91s]    HTTP headers names are case-insensitive per RFC standard.
[   91s]    Most likely, you need to fix HTTP parsing in your client software.
[   91s]     result = function(*args, **kwargs)
[   91s] 
[   91s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[   91s] =========================== short test summary info ============================
[   91s] FAILED tests/greenio_test.py::TestGreenSocket::test_send_timeout - AssertionE...
[   91s] === 1 failed, 601 passed, 109 skipped, 26 deselected, 54 warnings in 59.43s ====

Complete build log with all details of packages used and steps taken to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions