Skip to content

[1.0.0] buils fails with Python >= 3.12 #31

@tuxmaster5000

Description

@tuxmaster5000

======================================================================
ERROR: testClient (test_sslpsk.SSLPSKTest.testClient)

Traceback (most recent call last):
File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/test/test_sslpsk.py", line 80, in testClient
self.client_psk_sock = sslpsk.wrap_socket(self.client_socket, psk=self.psk, ciphers='PSK-AES256-CBC-SHA',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/sslpsk.py", line 99, in wrap_socket
sock = ssl.wrap_socket(*args, **kwargs)
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'


Ran 1 test in 0.012s

FAILED (errors=1)
sock = ssl.wrap_socket(*args, **kwargs)
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'
testClient (sslpsk.test.test_sslpsk.SSLPSKTest.testClient) ... Exception in thread Thread-2 (accept):
Traceback (most recent call last):
File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner
ERROR

======================================================================
ERROR: testClient (sslpsk.test.test_sslpsk.SSLPSKTest.testClient)

Traceback (most recent call last):
File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/test/test_sslpsk.py", line 80, in testClient
self.client_psk_sock = sslpsk.wrap_socket(self.client_socket, psk=self.psk, ciphers='PSK-AES256-CBC-SHA',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builddir/build/BUILD/sslpsk-1.0.0/sslpsk/sslpsk.py", line 99, in wrap_socket
sock = ssl.wrap_socket(*args, **kwargs)
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions