@Stefan After reverting 8047 it still fails for me but now in the same way you observe (I already had PR 40 merged)
james@james-ubuntu:~/git/jython/dist$ java -jar jython.jar Lib/test/test_socket_jy.py
test_connect_ex_workout (__main__.SocketConnectTest)
Verify connect_ex states go through EINPROGRESS?, EALREADY*, EISCONN ... ok
test_connect_ex_workout (__main__.SSLSocketConnectTest)
Verify connect_ex states go through EINPROGRESS?, EALREADY*, EISCONN ... Exception in thread socket-workout-7:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
Exception in thread socket-workout-5:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
Exception in thread socket-workout-9:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
Exception in thread socket-workout-8:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
Exception in thread socket-workout-6:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
Exception in thread socket-workout-1:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
Exception in thread socket-workout-2: connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
Exception in thread socket-workout-3:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
connect_errno = sock.connect_ex(self.address)
Exception in thread socket-workout-4: File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
self.do_handshake()
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
Exception in thread socket-workout-0:Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
self.run()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
Traceback (most recent call last):
File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
raise _map_exception(jlx)
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
raise _map_exception(jlx)
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
SSLError: [Errno 1] handshake timed out
SSLError: [Errno 1] handshake timed out
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
raise _map_exception(jlx)
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
self.run()
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
self.run()
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
self.run()
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
raise _map_exception(jlx)
raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
SSLError: [Errno 1] handshake timed out
self._target(*self._args, **self._kwargs)
File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
connect_errno = sock.connect_ex(self.address)
File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
self.do_handshake()
File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
SSLError: [Errno 1] handshake timed out
FAIL
test_socket_options_defined (__main__.SocketOptionsTest) ... ok
======================================================================
FAIL: test_connect_ex_workout (__main__.SSLSocketConnectTest)
Verify connect_ex states go through EINPROGRESS?, EALREADY*, EISCONN
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_socket_jy.py", line 140, in test_connect_ex_workout
self.assertEqual(result[-1], errno.EISCONN)
AssertionError: 115 != 106
----------------------------------------------------------------------
Ran 3 tests in 10.785s
FAILED (failures=1)
Traceback (most recent call last):
File "Lib/test/test_socket_jy.py", line 159, in <module>
test_main()
File "Lib/test/test_socket_jy.py", line 155, in test_main
test_support.run_unittest(SocketConnectTest, SSLSocketConnectTest, SocketOptionsTest)
File "/home/james/git/jython/dist/Lib/test/test_support.py", line 1320, in run_unittest
_run_suite(suite)
File "/home/james/git/jython/dist/Lib/test/test_support.py", line 1303, in _run_suite
raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_socket_jy.py", line 140, in test_connect_ex_workout
self.assertEqual(result[-1], errno.EISCONN)
AssertionError: 115 != 106 |