This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: error in "make test", while trying to install python on linux computer
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: assertSequenceEqual() raises BytesWarning when format message
View: 26837
Assigned To: Nosy List: raphros, skrah
Priority: normal Keywords:

Created on 2016-06-23 16:33 by raphros, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (11)
msg269124 - (view) Author: raphi rose (raphros) Date: 2016-06-23 16:33
I am using ubuntu 14.04, and I am trying to install a newer version of python, instead of 2.7.6 I'm trying to use 3.5.1. to do this I downloaded the tar.xz file, extracted it to a directory in my computer (not the /usr/local/bin/). I then went into the terminal and changed to the directory it was in, used $./configure, $make, $make test, and in the test it came up with an error, i then did $make testall, same error, finally i used $./python -m test -v test_nntplib, and it came up with this:
== CPython 3.5.1 (default, Jun 23 2016, 10:51:23) [GCC 4.8.4]
==   Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian
==   hash algorithm: siphash24 64bit
==   /home/rrose/temp/Python-3.5.1/build/test_python_18970
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_nntplib
test_caps_only_after_login (test.test_nntplib.CapsAfterLoginNNTPv2Tests) ... ok
test_decode_header (test.test_nntplib.MiscTests) ... ok
test_parse_datetime (test.test_nntplib.MiscTests) ... ok
test_parse_overview (test.test_nntplib.MiscTests) ... ok
test_parse_overview_fmt (test.test_nntplib.MiscTests) ... ok
test_ssl_support (test.test_nntplib.MiscTests) ... skipped 'requires SSL support'
test_unparse_datetime (test.test_nntplib.MiscTests) ... ok
test_unparse_datetime_legacy (test.test_nntplib.MiscTests) ... ok
test_bad_capabilities (test.test_nntplib.MockSocketTests) ... ok
test_bad_welcome (test.test_nntplib.MockSocketTests) ... ok
test_login_aborted (test.test_nntplib.MockSocketTests) ... ok
test_service_permanently_unavailable (test.test_nntplib.MockSocketTests) ... ok
test_service_temporarily_unavailable (test.test_nntplib.MockSocketTests) ... ok
test_bad_capabilities (test.test_nntplib.MockSslTests) ... skipped 'requires SSL support'
test_bad_welcome (test.test_nntplib.MockSslTests) ... skipped 'requires SSL support'
test_login_aborted (test.test_nntplib.MockSslTests) ... skipped 'requires SSL support'
test_service_permanently_unavailable (test.test_nntplib.MockSslTests) ... skipped 'requires SSL support'
test_service_temporarily_unavailable (test.test_nntplib.MockSslTests) ... skipped 'requires SSL support'
test_article (test.test_nntplib.NNTPv1Tests) ... ok
test_article_file (test.test_nntplib.NNTPv1Tests) ... ok
test_authinfo (test.test_nntplib.NNTPv1Tests) ... ok
test_body (test.test_nntplib.NNTPv1Tests) ... ok
test_body_file (test.test_nntplib.NNTPv1Tests) ... ok
test_caps (test.test_nntplib.NNTPv1Tests) ... ok
test_date (test.test_nntplib.NNTPv1Tests) ... ok
test_description (test.test_nntplib.NNTPv1Tests) ... ok
test_descriptions (test.test_nntplib.NNTPv1Tests) ... ok
test_group (test.test_nntplib.NNTPv1Tests) ... ok
test_head (test.test_nntplib.NNTPv1Tests) ... ok
test_head_file (test.test_nntplib.NNTPv1Tests) ... ok
test_help (test.test_nntplib.NNTPv1Tests) ... ok
test_ihave (test.test_nntplib.NNTPv1Tests) ... ok
test_last (test.test_nntplib.NNTPv1Tests) ... ok
test_list (test.test_nntplib.NNTPv1Tests) ... ok
test_newnews (test.test_nntplib.NNTPv1Tests) ... ok
test_next (test.test_nntplib.NNTPv1Tests) ... ok
test_over (test.test_nntplib.NNTPv1Tests) ... ok
test_post (test.test_nntplib.NNTPv1Tests) ... ok
test_quit (test.test_nntplib.NNTPv1Tests) ... ok
test_stat (test.test_nntplib.NNTPv1Tests) ... ok
test_too_long_lines (test.test_nntplib.NNTPv1Tests) ... ok
test_welcome (test.test_nntplib.NNTPv1Tests) ... ok
test_xover (test.test_nntplib.NNTPv1Tests) ... ok
test_article (test.test_nntplib.NNTPv2Tests) ... ok
test_article_file (test.test_nntplib.NNTPv2Tests) ... ok
test_authinfo (test.test_nntplib.NNTPv2Tests) ... ok
test_body (test.test_nntplib.NNTPv2Tests) ... ok
test_body_file (test.test_nntplib.NNTPv2Tests) ... ok
test_caps (test.test_nntplib.NNTPv2Tests) ... ok
test_date (test.test_nntplib.NNTPv2Tests) ... ok
test_description (test.test_nntplib.NNTPv2Tests) ... ok
test_descriptions (test.test_nntplib.NNTPv2Tests) ... ok
test_group (test.test_nntplib.NNTPv2Tests) ... ok
test_head (test.test_nntplib.NNTPv2Tests) ... ok
test_head_file (test.test_nntplib.NNTPv2Tests) ... ok
test_help (test.test_nntplib.NNTPv2Tests) ... ok
test_ihave (test.test_nntplib.NNTPv2Tests) ... ok
test_last (test.test_nntplib.NNTPv2Tests) ... ok
test_list (test.test_nntplib.NNTPv2Tests) ... ok
test_newnews (test.test_nntplib.NNTPv2Tests) ... ok
test_next (test.test_nntplib.NNTPv2Tests) ... ok
test_over (test.test_nntplib.NNTPv2Tests) ... ok
test_post (test.test_nntplib.NNTPv2Tests) ... ok
test_quit (test.test_nntplib.NNTPv2Tests) ... ok
test_stat (test.test_nntplib.NNTPv2Tests) ... ok
test_too_long_lines (test.test_nntplib.NNTPv2Tests) ... ok
test_welcome (test.test_nntplib.NNTPv2Tests) ... ok
test_xover (test.test_nntplib.NNTPv2Tests) ... ok
skipped "Use of the 'network' resource not enabled"
test_module_all_attribute (test.test_nntplib.PublicAPITests) ... ok
test_we_are_in_reader_mode_after_connect (test.test_nntplib.SendReaderNNTPv2Tests) ... ok

----------------------------------------------------------------------
Ran 70 tests in 0.035s

OK (skipped=7)
1 test OK.
if anyone could tell me how to fix this that would be great, thanks!
msg269125 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2016-06-23 16:42
You need to install at least these development libraries:

sudo apt-get install libssl-dev liblzma-dev libbz2-dev libreadline-dev libgdbm-dev libffi-dev


Possibly some are missing in this list, tkinter and zip for example.
Use "apt-cache search tkinter" to figure out the name of the library,
always use the "dev" versions.
msg269128 - (view) Author: raphi rose (raphros) Date: 2016-06-23 17:49
the only one listed as dev was "tcl-snack-dev - Sound extension to Tcl/Tk and Python/Tkinter - development files," or instead of doing that one should i just use "python3-tk - Tkinter - Writing Tk applications with Python 3.x" and put a "-dev" at the end of the command? also, I'm a bit confused, should i only be looking at ones that have "lib" at the beginning?
msg269133 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2016-06-23 18:55
I think you need tcl8.4-dev and tk8.4-dev and perhaps zlib1g-dev.


Actually the point is that it's expected that some modules don't build
if the corresponding libraries aren't installed.
msg269134 - (view) Author: raphi rose (raphros) Date: 2016-06-23 19:16
hmm, well i installed all the ones you told me to, ran make test again, and now it comes up with 
ERROR: test_article_head_body (test.test_nntplib.NetworkedNNTPTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rrose/temp/Python-3.5.1/Lib/test/test_nntplib.py", line 252, in wrapped
    meth(self)
  File "/home/rrose/temp/Python-3.5.1/Lib/test/test_nntplib.py", line 189, in test_article_head_body
    self.assertEqual(filtered_lines, filtered_head_lines + [b''] + body.lines)
  File "/home/rrose/temp/Python-3.5.1/Lib/unittest/case.py", line 820, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/home/rrose/temp/Python-3.5.1/Lib/unittest/case.py", line 1018, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/home/rrose/temp/Python-3.5.1/Lib/unittest/case.py", line 967, in assertSequenceEqual
    (i, item1, item2))
BytesWarning: str() on a bytes instance

----------------------------------------------------------------------
Ran 106 tests in 12.949s

FAILED (errors=1)
test test_nntplib failed
3 tests failed again:
    test_httplib test_nntplib test_ssl
make: *** [test] Error 1
I am about to run each of those tests manually and will report the output
msg269135 - (view) Author: raphi rose (raphros) Date: 2016-06-23 19:18
the test_nntplib

rrose@intern:~/temp/Python-3.5.1$ ./python -m test -v test_nntplib
== CPython 3.5.1 (default, Jun 23 2016, 15:03:20) [GCC 4.8.4]
==   Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian
==   hash algorithm: siphash24 64bit
==   /home/rrose/temp/Python-3.5.1/build/test_python_28873
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_nntplib
test_caps_only_after_login (test.test_nntplib.CapsAfterLoginNNTPv2Tests) ... ok
test_decode_header (test.test_nntplib.MiscTests) ... ok
test_parse_datetime (test.test_nntplib.MiscTests) ... ok
test_parse_overview (test.test_nntplib.MiscTests) ... ok
test_parse_overview_fmt (test.test_nntplib.MiscTests) ... ok
test_ssl_support (test.test_nntplib.MiscTests) ... ok
test_unparse_datetime (test.test_nntplib.MiscTests) ... ok
test_unparse_datetime_legacy (test.test_nntplib.MiscTests) ... ok
test_bad_capabilities (test.test_nntplib.MockSocketTests) ... ok
test_bad_welcome (test.test_nntplib.MockSocketTests) ... ok
test_login_aborted (test.test_nntplib.MockSocketTests) ... ok
test_service_permanently_unavailable (test.test_nntplib.MockSocketTests) ... ok
test_service_temporarily_unavailable (test.test_nntplib.MockSocketTests) ... ok
test_bad_capabilities (test.test_nntplib.MockSslTests) ... ok
test_bad_welcome (test.test_nntplib.MockSslTests) ... ok
test_login_aborted (test.test_nntplib.MockSslTests) ... ok
test_service_permanently_unavailable (test.test_nntplib.MockSslTests) ... ok
test_service_temporarily_unavailable (test.test_nntplib.MockSslTests) ... ok
test_article (test.test_nntplib.NNTPv1Tests) ... ok
test_article_file (test.test_nntplib.NNTPv1Tests) ... ok
test_authinfo (test.test_nntplib.NNTPv1Tests) ... ok
test_body (test.test_nntplib.NNTPv1Tests) ... ok
test_body_file (test.test_nntplib.NNTPv1Tests) ... ok
test_caps (test.test_nntplib.NNTPv1Tests) ... ok
test_date (test.test_nntplib.NNTPv1Tests) ... ok
test_description (test.test_nntplib.NNTPv1Tests) ... ok
test_descriptions (test.test_nntplib.NNTPv1Tests) ... ok
test_group (test.test_nntplib.NNTPv1Tests) ... ok
test_head (test.test_nntplib.NNTPv1Tests) ... ok
test_head_file (test.test_nntplib.NNTPv1Tests) ... ok
test_help (test.test_nntplib.NNTPv1Tests) ... ok
test_ihave (test.test_nntplib.NNTPv1Tests) ... ok
test_last (test.test_nntplib.NNTPv1Tests) ... ok
test_list (test.test_nntplib.NNTPv1Tests) ... ok
test_newnews (test.test_nntplib.NNTPv1Tests) ... ok
test_next (test.test_nntplib.NNTPv1Tests) ... ok
test_over (test.test_nntplib.NNTPv1Tests) ... ok
test_post (test.test_nntplib.NNTPv1Tests) ... ok
test_quit (test.test_nntplib.NNTPv1Tests) ... ok
test_stat (test.test_nntplib.NNTPv1Tests) ... ok
test_too_long_lines (test.test_nntplib.NNTPv1Tests) ... ok
test_welcome (test.test_nntplib.NNTPv1Tests) ... ok
test_xover (test.test_nntplib.NNTPv1Tests) ... ok
test_article (test.test_nntplib.NNTPv2Tests) ... ok
test_article_file (test.test_nntplib.NNTPv2Tests) ... ok
test_authinfo (test.test_nntplib.NNTPv2Tests) ... ok
test_body (test.test_nntplib.NNTPv2Tests) ... ok
test_body_file (test.test_nntplib.NNTPv2Tests) ... ok
test_caps (test.test_nntplib.NNTPv2Tests) ... ok
test_date (test.test_nntplib.NNTPv2Tests) ... ok
test_description (test.test_nntplib.NNTPv2Tests) ... ok
test_descriptions (test.test_nntplib.NNTPv2Tests) ... ok
test_group (test.test_nntplib.NNTPv2Tests) ... ok
test_head (test.test_nntplib.NNTPv2Tests) ... ok
test_head_file (test.test_nntplib.NNTPv2Tests) ... ok
test_help (test.test_nntplib.NNTPv2Tests) ... ok
test_ihave (test.test_nntplib.NNTPv2Tests) ... ok
test_last (test.test_nntplib.NNTPv2Tests) ... ok
test_list (test.test_nntplib.NNTPv2Tests) ... ok
test_newnews (test.test_nntplib.NNTPv2Tests) ... ok
test_next (test.test_nntplib.NNTPv2Tests) ... ok
test_over (test.test_nntplib.NNTPv2Tests) ... ok
test_post (test.test_nntplib.NNTPv2Tests) ... ok
test_quit (test.test_nntplib.NNTPv2Tests) ... ok
test_stat (test.test_nntplib.NNTPv2Tests) ... ok
test_too_long_lines (test.test_nntplib.NNTPv2Tests) ... ok
test_welcome (test.test_nntplib.NNTPv2Tests) ... ok
test_xover (test.test_nntplib.NNTPv2Tests) ... ok
skipped "Use of the 'network' resource not enabled"
skipped "Use of the 'network' resource not enabled"
test_module_all_attribute (test.test_nntplib.PublicAPITests) ... ok
test_we_are_in_reader_mode_after_connect (test.test_nntplib.SendReaderNNTPv2Tests) ... ok

----------------------------------------------------------------------
Ran 70 tests in 0.037s

OK (skipped=2)
1 test OK.
msg269136 - (view) Author: raphi rose (raphros) Date: 2016-06-23 19:19
the test_httplib

rrose@intern:~/temp/Python-3.5.1$ ./python -m test -v test_httplib
== CPython 3.5.1 (default, Jun 23 2016, 15:03:20) [GCC 4.8.4]
==   Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian
==   hash algorithm: siphash24 64bit
==   /home/rrose/temp/Python-3.5.1/build/test_python_28888
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_httplib
test_auto_headers (test.test_httplib.HeaderTests) ... ok
test_content_length_0 (test.test_httplib.HeaderTests) ... ok
test_invalid_headers (test.test_httplib.HeaderTests) ... ok
test_ipv6host_header (test.test_httplib.HeaderTests) ... ok
test_malformed_headers_coped_with (test.test_httplib.HeaderTests) ... ok
test_putheader (test.test_httplib.HeaderTests) ... ok
test_all (test.test_httplib.OfflineTest) ... ok
test_client_constants (test.test_httplib.OfflineTest) ... ok
test_responses (test.test_httplib.OfflineTest) ... ok
test_bad_status_repr (test.test_httplib.BasicTest) ... ok
test_chunked (test.test_httplib.BasicTest) ... ok
test_chunked_extension (test.test_httplib.BasicTest) ... ok
test_chunked_head (test.test_httplib.BasicTest) ... ok
test_chunked_missing_end (test.test_httplib.BasicTest)
some servers may serve up a short chunked encoding stream ... ok
test_chunked_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the chunked-encoding stream ... ok
test_chunked_trailers (test.test_httplib.BasicTest)
See that trailers are read and ignored ... ok
test_content_length_sync (test.test_httplib.BasicTest)
Check that we don't read past the end of the Content-Length stream ... ok
test_early_eof (test.test_httplib.BasicTest) ... ok
test_epipe (test.test_httplib.BasicTest) ... ok
test_error_leak (test.test_httplib.BasicTest) ... ok
test_host_port (test.test_httplib.BasicTest) ... ok
test_incomplete_read (test.test_httplib.BasicTest) ... ok
test_negative_content_length (test.test_httplib.BasicTest) ... ok
test_overflowing_chunked_line (test.test_httplib.BasicTest) ... ok
test_overflowing_header_line (test.test_httplib.BasicTest) ... ok
test_overflowing_status_line (test.test_httplib.BasicTest) ... ok
test_partial_readintos (test.test_httplib.BasicTest) ... ok
test_partial_readintos_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_readintos_no_content_length (test.test_httplib.BasicTest) ... ok
test_partial_reads (test.test_httplib.BasicTest) ... ok
test_partial_reads_incomplete_body (test.test_httplib.BasicTest) ... ok
test_partial_reads_no_content_length (test.test_httplib.BasicTest) ... ok
test_read_head (test.test_httplib.BasicTest) ... ok
test_readinto_chunked (test.test_httplib.BasicTest) ... ok
test_readinto_chunked_head (test.test_httplib.BasicTest) ... ok
test_readinto_head (test.test_httplib.BasicTest) ... ok
test_response_headers (test.test_httplib.BasicTest) ... ok
test_send (test.test_httplib.BasicTest) ... ok
test_send_file (test.test_httplib.BasicTest) ... ok
test_send_iter (test.test_httplib.BasicTest) ... ok
test_send_type_error (test.test_httplib.BasicTest) ... ok
test_send_updating_file (test.test_httplib.BasicTest) ... ok
test_status_lines (test.test_httplib.BasicTest) ... ok
test_too_many_headers (test.test_httplib.BasicTest) ... ok
testTimeoutAttribute (test.test_httplib.TimeoutTest) ... ok
test_100_close (test.test_httplib.PersistenceTest) ... ok
test_disconnected (test.test_httplib.PersistenceTest) ... ok
test_reuse_reconnect (test.test_httplib.PersistenceTest) ... ok
test_attributes (test.test_httplib.HTTPSTest) ... ok
test_host_port (test.test_httplib.HTTPSTest) ... ok
test_local_bad_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 42358):42358 ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:18:58] code 404, message File not found
 server (('127.0.0.1', 42358):42358 ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:18:58] "GET /nonexistent HTTP/1.1" 404 -
 server (('127.0.0.1', 42358):42358 ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:18:58] code 404, message File not found
 server (('127.0.0.1', 42358):42358 ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:18:58] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_good_hostname (test.test_httplib.HTTPSTest) ...  server (('127.0.0.1', 50574):50574 ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:18:58] code 404, message File not found
 server (('127.0.0.1', 50574):50574 ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:18:58] "GET /nonexistent HTTP/1.1" 404 -
stopping HTTPS server
joining HTTPS thread
ok
test_local_unknown_cert (test.test_httplib.HTTPSTest) ... stopping HTTPS server
Got an error:
[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:645)
joining HTTPS thread
ok
test_networked (test.test_httplib.HTTPSTest) ... skipped "Use of the 'network' resource not enabled"
test_networked_bad_cert (test.test_httplib.HTTPSTest) ... skipped "Use of the 'network' resource not enabled"
test_networked_good_cert (test.test_httplib.HTTPSTest) ... skipped "Use of the 'network' resource not enabled"
test_networked_noverification (test.test_httplib.HTTPSTest) ... skipped "Use of the 'network' resource not enabled"
test_networked_trusted_by_default_cert (test.test_httplib.HTTPSTest) ... skipped "Use of the 'network' resource not enabled"
test_ascii_body (test.test_httplib.RequestBodyTest) ... ok
test_binary_file_body (test.test_httplib.RequestBodyTest) ... ok
test_bytes_body (test.test_httplib.RequestBodyTest) ... ok
test_file_body (test.test_httplib.RequestBodyTest) ... ok
test_latin1_body (test.test_httplib.RequestBodyTest) ... ok
test_manual_content_length (test.test_httplib.RequestBodyTest) ... ok
testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testHTTPSConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
test_getting_header (test.test_httplib.HTTPResponseTest) ... ok
test_getting_header_defaultint (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_iterable_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_with_string_default (test.test_httplib.HTTPResponseTest) ... ok
test_getting_nonexistent_header_without_default (test.test_httplib.HTTPResponseTest) ... ok
test_peek (test.test_httplib.ExtendedReadTest) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTest) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTest) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTest) ... ok
test_readline (test.test_httplib.ExtendedReadTest) ... ok
test_peek (test.test_httplib.ExtendedReadTestChunked) ... ok
test_peek_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_0 (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_bounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_read1_unbounded (test.test_httplib.ExtendedReadTestChunked) ... ok
test_readline (test.test_httplib.ExtendedReadTestChunked) ... ok
test_connect_put_request (test.test_httplib.TunnelTests) ... ok
test_connect_with_tunnel (test.test_httplib.TunnelTests) ... ok
test_disallow_set_tunnel_after_connect (test.test_httplib.TunnelTests) ... ok
test_set_tunnel_host_port_headers (test.test_httplib.TunnelTests) ... ok
test_tunnel_debuglog (test.test_httplib.TunnelTests) ... ok

----------------------------------------------------------------------
Ran 90 tests in 0.177s

OK (skipped=5)
1 test OK.
msg269137 - (view) Author: raphi rose (raphros) Date: 2016-06-23 19:21
the test_ssl

rrose@intern:~/temp/Python-3.5.1$ ./python -m test -v test_ssl
== CPython 3.5.1 (default, Jun 23 2016, 15:03:20) [GCC 4.8.4]
==   Linux-3.13.0-88-generic-x86_64-with-debian-jessie-sid little-endian
==   hash algorithm: siphash24 64bit
==   /home/rrose/temp/Python-3.5.1/build/test_python_28902
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[1/1] test_ssl
test_ssl: testing with 'OpenSSL 1.0.1f 6 Jan 2014' (1, 0, 1, 6, 15)
          under Linux ('debian', 'jessie/sid', '')
          HAS_SNI = True
          OP_ALL = 0x800003ff
          OP_NO_TLSv1_1 = 0x10000000
test__create_stdlib_context (test.test_ssl.ContextTests) ... ok
test_cert_store_stats (test.test_ssl.ContextTests) ... ok
test_check_hostname (test.test_ssl.ContextTests) ... ok
test_ciphers (test.test_ssl.ContextTests) ... ok
test_constructor (test.test_ssl.ContextTests) ... ok
test_create_default_context (test.test_ssl.ContextTests) ... ok
test_get_ca_certs (test.test_ssl.ContextTests) ... ok
test_load_cert_chain (test.test_ssl.ContextTests) ... ok
test_load_default_certs (test.test_ssl.ContextTests) ... ok
test_load_default_certs_env (test.test_ssl.ContextTests) ... ok
test_load_default_certs_env_windows (test.test_ssl.ContextTests) ... skipped 'Windows specific'
test_load_dh_params (test.test_ssl.ContextTests) ... ok
test_load_verify_cadata (test.test_ssl.ContextTests) ... ok
test_load_verify_locations (test.test_ssl.ContextTests) ... ok
test_options (test.test_ssl.ContextTests) ... ok
test_protocol (test.test_ssl.ContextTests) ... ok
test_session_stats (test.test_ssl.ContextTests) ... ok
test_set_default_verify_paths (test.test_ssl.ContextTests) ... ok
test_set_ecdh_curve (test.test_ssl.ContextTests) ... ok
test_sni_callback (test.test_ssl.ContextTests) ... ok
test_sni_callback_refcycle (test.test_ssl.ContextTests) ... ok
test_verify_flags (test.test_ssl.ContextTests) ... ok
test_verify_mode (test.test_ssl.ContextTests) ... ok
test_DER_to_PEM (test.test_ssl.BasicSocketTests) ... ok
test_asn1object (test.test_ssl.BasicSocketTests) ... ok
test_cert_time_to_seconds (test.test_ssl.BasicSocketTests) ... ok
test_cert_time_to_seconds_locale (test.test_ssl.BasicSocketTests) ... skipped 'locale-specific month name needs to be different from C locale'
test_cert_time_to_seconds_timezone (test.test_ssl.BasicSocketTests) ... ok
test_constants (test.test_ssl.BasicSocketTests) ... ok
test_dealloc_warn (test.test_ssl.BasicSocketTests) ... ok
test_enum_certificates (test.test_ssl.BasicSocketTests) ... skipped 'Windows specific'
test_enum_crls (test.test_ssl.BasicSocketTests) ... skipped 'Windows specific'
test_errors (test.test_ssl.BasicSocketTests) ... ok
test_get_default_verify_paths (test.test_ssl.BasicSocketTests) ... ok
test_match_hostname (test.test_ssl.BasicSocketTests) ... ok
test_openssl_version (test.test_ssl.BasicSocketTests) ... ok
test_parse_cert (test.test_ssl.BasicSocketTests) ... 
{'issuer': ((('countryName', 'XY'),),
            (('localityName', 'Castle Anthrax'),),
            (('organizationName', 'Python Software Foundation'),),
            (('commonName', 'localhost'),)),
 'notAfter': 'Oct  5 23:01:56 2020 GMT',
 'notBefore': 'Oct  8 23:01:56 2010 GMT',
 'serialNumber': 'D7C7381919AFC24E',
 'subject': ((('countryName', 'XY'),),
             (('localityName', 'Castle Anthrax'),),
             (('organizationName', 'Python Software Foundation'),),
             (('commonName', 'localhost'),)),
 'subjectAltName': (('DNS', 'localhost'),),
 'version': 3}

{'OCSP': ('http://ocsp.verisign.com',),
 'caIssuers': ('http://SVRIntl-G3-aia.verisign.com/SVRIntlG3.cer',),
 'crlDistributionPoints': ('http://SVRIntl-G3-crl.verisign.com/SVRIntlG3.crl',),
 'issuer': ((('countryName', 'US'),),
            (('organizationName', 'VeriSign, Inc.'),),
            (('organizationalUnitName', 'VeriSign Trust Network'),),
            (('organizationalUnitName',
              'Terms of use at https://www.verisign.com/rpa (c)10'),),
            (('commonName', 'VeriSign Class 3 International Server CA - G3'),)),
 'notAfter': 'Sep 20 23:59:59 2012 GMT',
 'notBefore': 'Sep 21 00:00:00 2011 GMT',
 'serialNumber': '2EE6EA7640A075CEE5005F4D7C79549A',
 'subject': ((('countryName', 'FI'),),
             (('stateOrProvinceName', 'Espoo'),),
             (('localityName', 'Espoo'),),
             (('organizationName', 'Nokia'),),
             (('organizationalUnitName', 'BI'),),
             (('commonName', 'projects.developer.nokia.com'),)),
 'subjectAltName': (('DNS', 'projects.developer.nokia.com'),
                    ('DNS', 'projects.forum.nokia.com')),
 'version': 3}
ok
test_parse_cert_CVE_2013_4238 (test.test_ssl.BasicSocketTests) ... 
{'issuer': ((('countryName', 'US'),),
            (('stateOrProvinceName', 'Oregon'),),
            (('localityName', 'Beaverton'),),
            (('organizationName', 'Python Software Foundation'),),
            (('organizationalUnitName', 'Python Core Development'),),
            (('commonName', 'null.python.org\x00example.org'),),
            (('emailAddress', 'python-dev@python.org'),)),
 'notAfter': 'Aug  7 13:12:52 2013 GMT',
 'notBefore': 'Aug  7 13:11:52 2013 GMT',
 'serialNumber': '00',
 'subject': ((('countryName', 'US'),),
             (('stateOrProvinceName', 'Oregon'),),
             (('localityName', 'Beaverton'),),
             (('organizationName', 'Python Software Foundation'),),
             (('organizationalUnitName', 'Python Core Development'),),
             (('commonName', 'null.python.org\x00example.org'),),
             (('emailAddress', 'python-dev@python.org'),)),
 'subjectAltName': (('DNS', 'altnull.python.org\x00example.com'),
                    ('email', 'null@python.org\x00user@example.org'),
                    ('URI', 'http://null.python.org\x00http://example.org'),
                    ('IP Address', '192.0.2.1'),
                    ('IP Address', '2001:DB8:0:0:0:0:0:1\n')),
 'version': 3}
ok
test_purpose_enum (test.test_ssl.BasicSocketTests) ... ok
test_random (test.test_ssl.BasicSocketTests) ... 
 RAND_status is 1 (sufficient randomness)
ok
test_random_fork (test.test_ssl.BasicSocketTests) ... ok
test_refcycle (test.test_ssl.BasicSocketTests) ... ok
test_server_side (test.test_ssl.BasicSocketTests) ... ok
test_str_for_enums (test.test_ssl.BasicSocketTests) ... ok
test_timeout (test.test_ssl.BasicSocketTests) ... ok
test_tls_unique_channel_binding (test.test_ssl.BasicSocketTests) ... ok
test_unknown_channel_binding (test.test_ssl.BasicSocketTests) ... ok
test_unsupported_dtls (test.test_ssl.BasicSocketTests) ... ok
test_wrapped_unconnected (test.test_ssl.BasicSocketTests) ... ok
test_lib_reason (test.test_ssl.SSLErrorTests) ... ok
test_str (test.test_ssl.SSLErrorTests) ... ok
test_subclass (test.test_ssl.SSLErrorTests) ... ok
test_buffer_types (test.test_ssl.MemoryBIOTests) ... ok
test_eof (test.test_ssl.MemoryBIOTests) ... ok
test_error_types (test.test_ssl.MemoryBIOTests) ... ok
test_pending (test.test_ssl.MemoryBIOTests) ... ok
test_read_write (test.test_ssl.MemoryBIOTests) ... ok
test_alpn_protocols (test.test_ssl.ThreadedTests) ... skipped 'ALPN support needed for this test'
test_asyncore_server (test.test_ssl.ThreadedTests)
Check the example asyncore integration. ... 
 server:  new connection from 127.0.0.1:33233
 client:  sending b'FOO\n'...
 server:  read b'FOO\n' from client
 client:  read b'foo\n'
 client:  closing connection.
 client:  connection closed.
 cleanup: stopping server.
 cleanup: joining server thread.
 server:  read b'over\n' from client
 server:  closed connection <ssl.SSLSocket [closed] fd=-1, family=AddressFamily.AF_INET, type=2049, proto=0>
 server:  read b'' from client
 cleanup: successfully joined.
ok
test_check_hostname (test.test_ssl.ThreadedTests) ... 
 server:  new connection from ('127.0.0.1', 41287)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 server:  new connection from ('127.0.0.1', 40438)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
ok
test_compression (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 40540)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 got compression: None
ok
test_compression_disabled (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 39154)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now None
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
ok
test_crl_check (test.test_ssl.ThreadedTests) ... 
 server:  new connection from ('127.0.0.1', 54316)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 server:  new connection from ('127.0.0.1', 58773)

 server:  bad connection attempt from ('127.0.0.1', 58773):
Traceback (most recent call last):
   File "/home/rrose/temp/Python-3.5.1/Lib/test/test_ssl.py", line 1789, in wrap_conn
    self.sock, server_side=True)
   File "/home/rrose/temp/Python-3.5.1/Lib/ssl.py", line 376, in wrap_socket
    _context=self)
   File "/home/rrose/temp/Python-3.5.1/Lib/ssl.py", line 747, in __init__
    self.do_handshake()
   File "/home/rrose/temp/Python-3.5.1/Lib/ssl.py", line 983, in do_handshake
    self._sslobj.do_handshake()
   File "/home/rrose/temp/Python-3.5.1/Lib/ssl.py", line 628, in do_handshake
    self._sslobj.do_handshake()
 ssl.SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:645)
 server:  new connection from ('127.0.0.1', 34821)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
ok
test_default_ciphers (test.test_ssl.ThreadedTests) ... ok
test_default_ecdh_curve (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 47715)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
ok
test_dh_params (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 48140)
 server: connection cipher is now ('DHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now None
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
ok
test_do_handshake_enotconn (test.test_ssl.ThreadedTests) ... ok
test_echo (test.test_ssl.ThreadedTests)
Basic test of an SSL client connecting to a server ... 
 server:  new connection from ('127.0.0.1', 47352)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 52027)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 35909)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now None
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 53560)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now None
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 52272)
 server: connection cipher is now ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
ok
test_empty_cert (test.test_ssl.ThreadedTests)
Connecting with an empty cert file ... 
SSLError is [SSL] PEM lib (_ssl.c:2803)
ok
test_getpeercert (test.test_ssl.ThreadedTests) ... 
{'issuer': ((('countryName', 'XY'),),
            (('localityName', 'Castle Anthrax'),),
            (('organizationName', 'Python Software Foundation'),),
            (('commonName', 'localhost'),)),
 'notAfter': 'Oct  5 23:01:56 2020 GMT',
 'notBefore': 'Oct  8 23:01:56 2010 GMT',
 'serialNumber': 'D7C7381919AFC24E',
 'subject': ((('countryName', 'XY'),),
             (('localityName', 'Castle Anthrax'),),
             (('organizationName', 'Python Software Foundation'),),
             (('commonName', 'localhost'),)),
 'subjectAltName': (('DNS', 'localhost'),),
 'version': 3}
Connection cipher is ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256).
ok
test_getpeercert_enotconn (test.test_ssl.ThreadedTests) ... ok
test_handshake_timeout (test.test_ssl.ThreadedTests) ... ok
test_malformed_cert (test.test_ssl.ThreadedTests)
Connecting with a badly formatted certificate (syntax error) ... 
SSLError is [SSL] PEM lib (_ssl.c:2803)
ok
test_malformed_key (test.test_ssl.ThreadedTests)
Connecting with a badly formatted key (syntax error) ... 
SSLError is [SSL] PEM lib (_ssl.c:2803)
ok
test_nonblocking_send (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 33178)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
Test server failure:
Traceback (most recent call last):
   File "/home/rrose/temp/Python-3.5.1/Lib/test/test_ssl.py", line 1886, in run
    self.write(msg.lower())
   File "/home/rrose/temp/Python-3.5.1/Lib/test/test_ssl.py", line 1831, in write
    return self.sslconn.write(bytes)
   File "/home/rrose/temp/Python-3.5.1/Lib/ssl.py", line 803, in write
    return self._sslobj.write(data)
   File "/home/rrose/temp/Python-3.5.1/Lib/ssl.py", line 581, in write
    return self._sslobj.write(data)
 ConnectionResetError: [Errno 104] Connection reset by peer
ok
test_nonexisting_cert (test.test_ssl.ThreadedTests)
Connecting with a non-existing cert file ... 
OSError is No such file or directory
ok
test_npn_protocols (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 45702)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now http/1.1
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 56144)
 client:  sending b'FOO\n'...
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now http/1.1
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 50837)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now spdy/2
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
 server:  new connection from ('127.0.0.1', 49364)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now abc
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
ok
test_protocol_sslv2 (test.test_ssl.ThreadedTests)
Connecting to an SSLv2 server with various client options ... skipped 'OpenSSL is compiled without SSLv2 support'
test_protocol_sslv23 (test.test_ssl.ThreadedTests)
Connecting to an SSLv23 server with various client options ... 
 {PROTOCOL_SSLv3->PROTOCOL_SSLv23} CERT_NONE
 PROTOCOL_SSLv23->PROTOCOL_SSLv23 CERT_NONE
 PROTOCOL_TLSv1->PROTOCOL_SSLv23 CERT_NONE
 {PROTOCOL_SSLv3->PROTOCOL_SSLv23} CERT_OPTIONAL
 PROTOCOL_SSLv23->PROTOCOL_SSLv23 CERT_OPTIONAL
 PROTOCOL_TLSv1->PROTOCOL_SSLv23 CERT_OPTIONAL
 {PROTOCOL_SSLv3->PROTOCOL_SSLv23} CERT_REQUIRED
 PROTOCOL_SSLv23->PROTOCOL_SSLv23 CERT_REQUIRED
 PROTOCOL_TLSv1->PROTOCOL_SSLv23 CERT_REQUIRED
 {PROTOCOL_SSLv3->PROTOCOL_SSLv23} CERT_NONE
 PROTOCOL_SSLv23->PROTOCOL_SSLv23 CERT_NONE
 {PROTOCOL_TLSv1->PROTOCOL_SSLv23} CERT_NONE
ok
test_protocol_sslv3 (test.test_ssl.ThreadedTests)
Connecting to an SSLv3 server with various client options ... 
 PROTOCOL_SSLv3->PROTOCOL_SSLv3 CERT_NONE
 PROTOCOL_SSLv3->PROTOCOL_SSLv3 CERT_OPTIONAL
 PROTOCOL_SSLv3->PROTOCOL_SSLv3 CERT_REQUIRED
 {PROTOCOL_SSLv23->PROTOCOL_SSLv3} CERT_NONE
 {PROTOCOL_TLSv1->PROTOCOL_SSLv3} CERT_NONE
 {PROTOCOL_SSLv23->PROTOCOL_SSLv3} CERT_NONE
ok
test_protocol_tlsv1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1 server with various client options ... 
 PROTOCOL_TLSv1->PROTOCOL_TLSv1 CERT_NONE
 PROTOCOL_TLSv1->PROTOCOL_TLSv1 CERT_OPTIONAL
 PROTOCOL_TLSv1->PROTOCOL_TLSv1 CERT_REQUIRED
 {PROTOCOL_SSLv3->PROTOCOL_TLSv1} CERT_NONE
 {PROTOCOL_SSLv23->PROTOCOL_TLSv1} CERT_NONE
ok
test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1.1 server with various client options. ... 
 PROTOCOL_TLSv1_1->PROTOCOL_TLSv1_1 CERT_NONE
 {PROTOCOL_SSLv3->PROTOCOL_TLSv1_1} CERT_NONE
 {PROTOCOL_SSLv23->PROTOCOL_TLSv1_1} CERT_NONE
 PROTOCOL_TLSv1_1->PROTOCOL_SSLv23 CERT_NONE
 {PROTOCOL_TLSv1->PROTOCOL_TLSv1_1} CERT_NONE
 {PROTOCOL_TLSv1_1->PROTOCOL_TLSv1} CERT_NONE
ok
test_protocol_tlsv1_2 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1.2 server with various client options. ... 
 PROTOCOL_TLSv1_2->PROTOCOL_TLSv1_2 CERT_NONE
 {PROTOCOL_SSLv3->PROTOCOL_TLSv1_2} CERT_NONE
 {PROTOCOL_SSLv23->PROTOCOL_TLSv1_2} CERT_NONE
 PROTOCOL_TLSv1_2->PROTOCOL_SSLv23 CERT_NONE
 {PROTOCOL_TLSv1->PROTOCOL_TLSv1_2} CERT_NONE
 {PROTOCOL_TLSv1_2->PROTOCOL_TLSv1} CERT_NONE
 {PROTOCOL_TLSv1_1->PROTOCOL_TLSv1_2} CERT_NONE
 {PROTOCOL_TLSv1_2->PROTOCOL_TLSv1_1} CERT_NONE
ok
test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests) ... ok
test_recv_send (test.test_ssl.ThreadedTests)
Test recv(), send() and friends. ... 
 server:  new connection from ('127.0.0.1', 37197)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
ok
test_rude_shutdown (test.test_ssl.ThreadedTests)
A brutal shutdown of an SSL server should raise an OSError ... ok
test_selected_alpn_protocol (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 55355)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now None
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
ok
test_selected_alpn_protocol_if_server_uses_alpn (test.test_ssl.ThreadedTests) ... skipped 'ALPN support required'
test_selected_npn_protocol (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 57433)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 client:  sending b'FOO\n'...
 server: selected protocol is now None
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  sending b'FOO\n'...
 client:  read b'foo\n'
 client:  closing connection.
ok
test_sendfile (test.test_ssl.ThreadedTests) ... ok
test_server_accept (test.test_ssl.ThreadedTests) ... ok
test_shared_ciphers (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 44231)
 server: connection cipher is now ('ECDHE-RSA-RC4-SHA', 'TLSv1/SSLv3', 128)
 server: selected protocol is now None
ok
test_sni_callback (test.test_ssl.ThreadedTests) ...  server:  new connection from ('127.0.0.1', 37285)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 server:  new connection from ('127.0.0.1', 56968)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 server:  new connection from ('127.0.0.1', 34528)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
ok
test_sni_callback_alert (test.test_ssl.ThreadedTests) ... ok
test_sni_callback_raising (test.test_ssl.ThreadedTests) ... ok
test_sni_callback_wrong_return_type (test.test_ssl.ThreadedTests) ... ok
test_socketserver (test.test_ssl.ThreadedTests)
Using a SocketServer to create and manage SSL connections. ... 
 server (('127.0.0.1', 36048):36048 ('ECDHE-RSA-AES256-GCM-SHA384', 'TLSv1/SSLv3', 256)):
   [23/Jun/2016 15:20:36] "GET /keycert.pem HTTP/1.1" 200 -
 client: read 1783 bytes from remote server '<HTTPSServerThread <HTTPSServer localhost:36048>>'
stopping HTTPS server
joining HTTPS thread
ok
test_starttls (test.test_ssl.ThreadedTests)
Switching from clear text to encrypted and back again. ... 
 client:  sending b'msg 1'...
 server:  new connection from ('127.0.0.1', 33860)
 server: read b'msg 1' (unencrypted), sending back b'msg 1' (unencrypted)...
 client:  read b'msg 1' from server
 client:  sending b'MSG 2'...
 server: read b'MSG 2' (unencrypted), sending back b'msg 2' (unencrypted)...
 client:  read b'msg 2' from server
 client:  sending b'STARTTLS'...
 server: read STARTTLS from client, sending OK...
 client:  read b'ok' from server, starting TLS...
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
 client:  sending b'MSG 3'...
 server: read b'MSG 3' (encrypted), sending back b'msg 3' (encrypted)...
 client:  read b'msg 3' from server
 client:  sending b'msg 4'...
 server: read b'msg 4' (encrypted), sending back b'msg 4' (encrypted)...
 client:  read b'msg 4' from server
 client:  sending b'ENDTLS'...
 server: read ENDTLS from client, sending OK...
 client:  read b'ok' from server, ending TLS...
 server: connection is now unencrypted...
 client:  sending b'msg 5'...
 server: read b'msg 5' (unencrypted), sending back b'msg 5' (unencrypted)...
 client:  read b'msg 5' from server
 client:  sending b'msg 6'...
 server: read b'msg 6' (unencrypted), sending back b'msg 6' (unencrypted)...
 client:  read b'msg 6' from server
 client:  closing connection.
 server: client closed connection
ok
test_tls_unique_channel_binding (test.test_ssl.ThreadedTests)
Test tls-unique channel binding. ... 
 server:  new connection from ('127.0.0.1', 43512)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 got channel binding data: b'\xdf\xfa\xed\x05gGz0\xe5\xa5fP'
 server: selected protocol is now None
 server:  new connection from ('127.0.0.1', 43513)
 got another channel binding data: b'\xe4\xc1\xfb\xbaW\xe32\x85\xea:$T'
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
ok
test_version_basic (test.test_ssl.ThreadedTests) ... ok

----------------------------------------------------------------------
Ran 100 tests in 1.347s

OK (skipped=7)
1 test OK.
msg269138 - (view) Author: raphi rose (raphros) Date: 2016-06-23 19:25
also, after installing this library liblzma-dev it said that i had redundant files (not in those words) and that I should run "apt-get autoremove," which I did, this may have been what caused the other failures?
msg269139 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2016-06-23 19:38
Ah, so the tests pass when you run them manually but "make test"
fails.  This looks like

  https://bugs.python.org/issue26837 ,

which is fixed in the next release. You can just ignore this
failure, it's harmless.

[BTW, using autoremove is fine.]
msg269141 - (view) Author: raphi rose (raphros) Date: 2016-06-23 19:47
ok great, thanks for your help!
History
Date User Action Args
2022-04-11 14:58:32adminsetgithub: 71562
2016-06-23 20:00:58skrahsetstatus: open -> closed
type: compile error -> behavior
resolution: fixed -> duplicate
components: + Tests, - Build, Installation
2016-06-23 19:49:24raphrossetresolution: fixed
2016-06-23 19:47:04raphrossetstatus: closed -> open
type: behavior -> compile error
messages: + msg269141

components: + Build, Installation, - Tests
resolution: duplicate -> (no value)
2016-06-23 19:38:10skrahsetstatus: open -> closed

superseder: assertSequenceEqual() raises BytesWarning when format message
components: + Tests, - Build, Installation
messages: + msg269139
type: compile error -> behavior
resolution: duplicate
stage: resolved
2016-06-23 19:25:21raphrossetmessages: + msg269138
2016-06-23 19:21:18raphrossetmessages: + msg269137
2016-06-23 19:19:49raphrossetmessages: + msg269136
2016-06-23 19:18:38raphrossetmessages: + msg269135
2016-06-23 19:16:37raphrossetmessages: + msg269134
2016-06-23 18:55:12skrahsetmessages: + msg269133
2016-06-23 17:49:07raphrossetmessages: + msg269128
2016-06-23 16:42:03skrahsetnosy: + skrah
messages: + msg269125
2016-06-23 16:37:19raphrossetcomponents: - Tests
2016-06-23 16:33:32raphroscreate