--- gevent-1.4.0.orig/src/gevent/tests/known_failures.py 2017-06-05 13:31:50.000000000 +0200 +++ gevent-1.4.0/src/gevent/tests/known_failures.py 2018-03-05 12:50:16.000000000 +0100 @@ -33,8 +33,277 @@ # we don't have that option without a new commit---and sometimes we really need a build # to succeed in order to get a release wheel 'FLAKY test__issue6.py', -] + ###################################################### + # Problems which should be investigated + + # AssertionError: The 304 response must have no body + # and: + # File "/home/users/jajcus/rpm/BUILD/gevent-1.0/gevent/hub.py", line 331, in s + # return greenlet.switch(self) + # Timeout: 1 second: test timed out + 'FLAKY test__pywsgi.py', + + #====================================================================== + #ERROR: test_proxy_tunnel_without_status_line (__main__.BasicTest) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_httplib.py", line 589, in test_proxy_tunnel_without_status_line + # conn._tunnel() + # File "/usr/lib64/python2.7/httplib.py", line 819, in _tunnel + # line = response.fp.readline(_MAXLINE + 1) + #TypeError: readline() takes exactly 1 argument (2 given) + # + #====================================================================== + #FAIL: test_connect (__main__.TunnelTests) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_httplib.py", line 858, in test_connect + # self.assertNotIn('Host: destination.com:None', conn.sock.data) + #AssertionError: 'Host: destination.com:None' unexpectedly found in 'CONNECT destination.com:80 HTTP/1.0\r\n\r\nHEAD / HTTP/1.1\r\nHost: destination.com:None\r\nAccept-Encoding: identity\r\nContent-Length: 0\r\n\r\n' + # + #---------------------------------------------------------------------- + # fails even without gevent (plain Python) + 'FLAKY test_httplib.py', + + #====================================================================== + #FAIL: test_query_with_continuous_slashes (__main__.CGIHTTPServerTestCase) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_httpservers.py", line 566, in test_query_with_continuous_slashes + #AssertionError: Tuples differ: ('k=aa%2F%2Fbb&//q//p//=//a//b... != ('k=aa/bb&/q/p/=/a/b/\n', 'tex... + # + #First differing element 0: + #k=aa%2F%2Fbb&//q//p//=//a//b// + # + #k=aa/bb&/q/p/=/a/b/ + # + # + #- ('k=aa%2F%2Fbb&//q//p//=//a//b//\n', 'text/html', 200) + #? ^^^^^^ - - - - - - + # + #+ ('k=aa/bb&/q/p/=/a/b/\n', 'text/html', 200) + #? ^ + # + # + #====================================================================== + #FAIL: test_query_with_multiple_question_mark (__main__.CGIHTTPServerTestCase) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_httpservers.py", line 559, in test_query_with_multiple_question_mark + #AssertionError: Tuples differ: ('a=b?c=d\n', 'text/html', 200... != ('c=d\n', 'text/html', 200) + # + #First differing element 0: + #a=b?c=d + # + #c=d + # + # + #- ('a=b?c=d\n', 'text/html', 200) + #? ---- + # + #+ ('c=d\n', 'text/html', 200) + # + #---------------------------------------------------------------------- + 'FLAKY test_httpservers.py', + + + #FAIL: test_options (__main__.ContextTests) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_ssl.py", line 143, in f + # return func(*args, **kwargs) + # File "test_ssl.py", line 745, in test_options + # ctx.options) + #AssertionError: 2197816319 != 2164261887L + # + #====================================================================== + #FAIL: test_protocol_sslv23 (__main__.ThreadedTests) + #Connecting to an SSLv23 server with various client options + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_ssl.py", line 143, in f + # return func(*args, **kwargs) + # File "test_ssl.py", line 2249, in test_protocol_sslv23 + # try_protocol_combo(ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv3, False) + # File "test_ssl.py", line 1998, in try_protocol_combo + # ssl.get_protocol_name(server_protocol))) + #AssertionError: Client protocol PROTOCOL_SSLv3 succeeded with server protocol PROTOCOL_SSLv23! + # + #====================================================================== + #FAIL: test_protocol_sslv3 (__main__.ThreadedTests) + #Connecting to an SSLv3 server with various client options + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "test_ssl.py", line 143, in f + # return func(*args, **kwargs) + # File "test_ssl.py", line 2292, in test_protocol_sslv3 + # False, client_options=ssl.OP_NO_SSLv2) + # File "test_ssl.py", line 1998, in try_protocol_combo + # ssl.get_protocol_name(server_protocol))) + #AssertionError: Client protocol PROTOCOL_SSLv23 succeeded with server protocol PROTOCOL_SSLv3! + # + #---------------------------------------------------------------------- + 'FLAKY test_ssl.py', + + # FAIL: test_sendall_timeout (__main__.TestSSL) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "/home/users/jajcus/rpm/BUILD/gevent-1.1.0/greentest/greentest.py", line 280, in wrapped + # return method(self, *args, **kwargs) + # File "/home/users/jajcus/rpm/BUILD/gevent-1.1.0/greentest/greentest.py", line 269, in wrapped + # return method(self, *args, **kwargs) + # File "/home/users/jajcus/rpm/BUILD/gevent-1.1.0/greentest/test__socket.py", line 188, in test_sendall_timeout + # self.assertRaises(self.TIMEOUT_ERROR, client.sendall, self._test_sendall_data) + #AssertionError: timeout not raised by sendall + # + #====================================================================== + #FAIL: test_ssl_sendall_timeout0 (__main__.TestSSL) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "/home/users/jajcus/rpm/BUILD/gevent-1.1.0/greentest/greentest.py", line 280, in wrapped + # return method(self, *args, **kwargs) + # File "/home/users/jajcus/rpm/BUILD/gevent-1.1.0/greentest/greentest.py", line 269, in wrapped + # return method(self, *args, **kwargs) + # File "test__ssl.py", line 53, in test_ssl_sendall_timeout0 + # self.assertRaises(expected, client.sendall, self._test_sendall_data) + #AssertionError: SSLWantWriteError not raised by sendall + # + #---------------------------------------------------------------------- + 'FLAKY test__ssl.py', + + #FAIL: test_reset_internal_locks (__main__.EventTests) + #---------------------------------------------------------------------- + #Traceback (most recent call last): + # File "lock_tests.py", line 316, in test_reset_internal_locks + # self.assertIs(type(new_lock), type(old_lock)) + #AssertionError: is not + # + #---------------------------------------------------------------------- + 'FLAKY test_threading.py', + + ###################################################### + # Tests which fail when building with system libev + + # test__core_stat.py fails on 32-bit builders when using system + # libev + # + ## Watcher reacted after 0.0019 seconds (write) + ## Watcher reacted after 0.0019 seconds (unlink) + ## Traceback (most recent call last): + ## File "test__core_stat.py", line 54, in + ## assert watcher.attr is None, watcher.attr + ## AssertionError: posix.stat_result(st_mode=2001, st_ino=0L, st_dev=581509237251768320L, st_nlink=1000, st_uid=0, st_gid=0, st_size=5983298792366014472L, st_atime=1393095309, st_mtime=0, st_ctime=-1) + #* * * -u test__core_stat.py + + + # When building with system libev the 'fileno()' method of the + # loop object is not implemented. It seems to be used only be the + # test code, though. + + # | /usr/bin/python -u test__destroy.py + # Traceback (most recent call last): + # File "test__destroy.py", line 14, in + # assert saved_loop.fileno() is None, saved_loop + # AttributeError: 'gevent.core.loop' object has no attribute 'fileno' + 'FLAKY test__destroy.py', + + # | /usr/bin/python -u test_close_backend_fd.py + # Traceback (most recent call last): + # File "test_close_backend_fd.py", line 11, in + # fileno = hub.loop.fileno() + # AttributeError: 'gevent.core.loop' object has no attribute 'fileno' + 'FLAKY test_close_backend_fd.py', + + ###################################################### + # Tests which may fail on our builders + + # attempts to bind to port 53 + 'FLAKY test_ares_timeout.py', + + # depends on external service + 'FLAKY test__socket_ssl.py', + + # depends on external URL accessibility + 'FLAKY monkey_test test_urllib2net.py', + #'FLAKY monkey_test --Event test_urllib2net.py', + + # requires webpy, not in PLD + # has expectations on local TCP ports availability + 'FLAKY test___example_servers.py', + + # File "test__socket.py", line 140, in test_sendall_timeout + # self.assertRaises(self.TIMEOUT_ERROR, client.sendall, data_sent) + # AssertionError: timeout not raised + 'FLAKY test__socket.py', + + # Traceback (most recent call last): + # File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main + # "__main__", mod_spec) + # File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code + # exec(code, run_globals) + # File "/home/users/baggins/devel/PLD/rpm/BUILD/gevent-1.2.1/src/greentest/monkey_test.py", line 41, in + # exec(module_code, globals()) + # File "test_socket.py", line 5600, in + # test_main() + # File "test_socket.py", line 5596, in test_main + # support.run_unittest(*tests) + # File "/usr/lib64/python3.6/test/support/__init__.py", line 1923, in run_unittest + # _run_suite(suite) + # File "/usr/lib64/python3.6/test/support/__init__.py", line 1898, in _run_suite + # raise TestFailed(err) + # test.support.TestFailed: Traceback (most recent call last): + # File "/usr/lib64/python3.6/test/support/__init__.py", line 556, in wrapper + # return func(*args, **kw) + # File "test_socket.py", line 5470, in test_aead_aes_gcm + # res = op.recv(assoclen + len(plain) + taglen) + # File "/home/users/baggins/devel/PLD/rpm/BUILD/gevent-1.2.1/build-3/lib.linux-x86_64-3.6/gevent/_socket3.py", line 333, in recv + # return _socket.socket.recv(self._sock, *args) + # OSError: [Errno 22] Invalid argument + 'FLAKY test_socket.py', + + # uses DNS and external URLs, + # requires 'sendfile' python module + 'FLAKY test__examples.py', + + # expects local TCP port 6000 being available + 'FLAKY test__example_echoserver.py', + + # another network test + 'FLAKY test__example_portforwarder.py', + + # DNS + 'FLAKY test__socket_dns.py', + + # DNS, non-deterministic order + 'FLAKY test__socket_dns6.py', + + # DNS + 'FLAKY test__getaddrinfo_import.py', + + # uses lsof, which scans /proc + 'FLAKY test__makefile_ref.py', + + # uses os.forkpty() + 'FLAKY test__monkey_sigchld.py', + + # network + 'FLAKY test__server.py', + 'FLAKY test__server_pywsgi.py', + 'FLAKY test_urllib2net.py', + + # certificate verify failed + 'FLAKY test_urllib2_localnet.py', + # one warning too little? + 'FLAKY test__monkey.py', + # non-deterministic + 'FLAKY test__hub.py', + # "thread_ident=X" vs "thread_ident=-X" on py3.8? + 'FLAKY test__util.py', + # memory corruption under py3.8? + 'FLAKY test__monkey_sigchld_2.py', + 'FLAKY test__monkey_sigchld_3.py' +] if sys.platform == 'win32': # other Windows-related issues (need investigating)