Message11191

Author jamesmudd
Recipients darjus, jamesmudd, stefan.richthofer
Date 2017-03-06.21:14:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488834866.9.0.940924468686.issue2564@psf.upfronthosting.co.za>
In-reply-to
Content
test_socket_jy is also failing for me but in a slightly different way

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-4: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
    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-0: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
    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-9:Traceback (most recent call last):
Exception in thread socket-workout-8:  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.do_handshake()
    connect_errno = sock.connect_ex(self.address)
Traceback (most recent call last):
  File "/home/james/git/jython/dist/Lib/threading.py", line 222, in _Thread__bootstrap
  File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
  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)
    self.do_handshake()
  File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
  File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
    self.run()
  File "/home/james/git/jython/dist/Lib/threading.py", line 213, in run
    self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
    self._target(*self._args, **self._kwargs)
  File "/home/james/git/jython/dist/Lib/_socket.py", line 380, in handle_exception
  File "Lib/test/test_socket_jy.py", line 113, in do_nonblocking_connection
    connect_errno = sock.connect_ex(self.address)
    self.do_handshake()
  File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
  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
Exception in thread socket-workout-6:    self.do_handshake()
Traceback (most recent call last):
  File "/home/james/git/jython/dist/Lib/ssl.py", line 691, in do_handshake
  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
    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)
    self._sock._handle_channel_future(self._handshake_future, "SSL handshake", wait=True)
SSLError: [Errno 1] handshake timed out
  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)
SSLError: [Errno 1] handshake timed out
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
    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
    raise _map_exception(jlx)
Exception in thread socket-workout-7:    raise _map_exception(jlx)
SSLError: [Errno 1] handshake timed out
Traceback (most recent call last):
Exception in thread socket-workout-1:  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
    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
SSLError: [Errno 1] handshake timed out
Exception in thread socket-workout-2: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
    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)
SSLError: [Errno 1] handshake timed out
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
    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()
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
    connect_errno = sock.connect_ex(self.address)
  File "/home/james/git/jython/dist/Lib/ssl.py", line 637, in connect_ex
  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.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
ERROR
test_socket_options_defined (__main__.SocketOptionsTest) ... ok

======================================================================
ERROR: 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 139, in test_connect_ex_workout
    self.assertIn(result[0], {errno.EINPROGRESS, errno.EISCONN})
IndexError: index out of range: 0

----------------------------------------------------------------------
Ran 3 tests in 10.671s

FAILED (errors=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 139, in test_connect_ex_workout
    self.assertIn(result[0], {errno.EINPROGRESS, errno.EISCONN})
IndexError: index out of range: 0
History
Date User Action Args
2017-03-06 21:14:26jamesmuddsetmessageid: <1488834866.9.0.940924468686.issue2564@psf.upfronthosting.co.za>
2017-03-06 21:14:26jamesmuddsetrecipients: + jamesmudd, darjus, stefan.richthofer
2017-03-06 21:14:26jamesmuddlinkissue2564 messages
2017-03-06 21:14:26jamesmuddcreate