[issue30212] test_ssl.py is broken in Centos7

2021-09-12 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2019-01-18 Thread David Antonio Garcia Campos


David Antonio Garcia Campos  added the comment:

Hello Victor,
I just saw your message. I will try to setup my enviorment and will come back 
to you.
BR David Garcia

--
nosy: +David Antonio Garcia Campos

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2019-01-18 Thread STINNER Victor


STINNER Victor  added the comment:

@david-cpi: Ping? Can you please try comments in my previous comment?

Without feedback from your side, I will close the issue as "outdated" in 2 
weeks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread STINNER Victor

STINNER Victor added the comment:

> in 3.6.1 the test passes but it's because on sub-test was removed.

The unit tests still exist and were enhanced.

On Python 3.5, the BIO read-write data test used the external server 
self-signed.pythontest.net. On Python 3.6, the test now uses a server running 
locally. See issue #25940 and commit 3840b2ac6728d1940a7efc2ecab2c7d9a100c080.

Note: the failing test was renamed to test_bio_read_write_data.

--

David: You can try the following command to run the failing test in verbose 
mode (and only run this test). You can add --forever option to run the test in 
a loop until it fails.

In your output, I see "Needed 3 calls to complete do_handshake(). Needed 1 
calls to complete write()." but not "Needed 2 calls to complete read(). Needed 
1 calls to complete unwrap().".

For Python 3.5:

haypo@selma$ ./python -m test -u all test_ssl -v -m test_read_write_data

== CPython 3.5.3+ (default, May 2 2017, 11:20:59) [GCC 6.3.1 20161221 (Red Hat 
6.3.1-1)]
==   Linux-4.10.11-200.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five 
little-endian
==   hash algorithm: siphash24 64bit
==   /home/haypo/prog/python/3.5/build/test_python_20359
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.2k-fips  26 Jan 2017' (1, 0, 2, 11, 15)
  under Linux ('Fedora', '25', 'Twenty Five')
  HAS_SNI = True
  OP_ALL = 0x83ff
  OP_NO_TLSv1_1 = 0x1000
test_read_write_data (test.test_ssl.NetworkedBIOTests) ... Needed 3 calls to 
complete do_handshake().
Needed 1 calls to complete write().
Needed 2 calls to complete read().
Needed 1 calls to complete unwrap().
ok

--
Ran 1 test in 0.456s

OK
1 test OK.


For Python 3.6:

haypo@selma$ ./python -m test test_ssl -v -m test_bio_read_write_data

== CPython 3.6.1+ (default, May 2 2017, 10:23:14) [GCC 6.3.1 20161221 (Red Hat 
6.3.1-1)]
==   Linux-4.10.11-200.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five 
little-endian
==   hash algorithm: siphash24 64bit
==  cwd: /home/haypo/prog/python/3.6/build/test_python_20383
==  encodings: locale=UTF-8, FS=utf-8
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)
Run tests sequentially
0:00:00 [1/1] test_ssl
test_ssl: testing with 'OpenSSL 1.0.2k-fips  26 Jan 2017' (1, 0, 2, 11, 15)
  under Linux ('Fedora', '25', 'Twenty Five')
  HAS_SNI = True
  OP_ALL = 0x83ff
  OP_NO_TLSv1_1 = 0x1000
test_bio_read_write_data (test.test_ssl.SimpleBackgroundTests) ...  server:  
new connection from ('127.0.0.1', 42160)
 server: connection cipher is now ('ECDHE-RSA-AES256-SHA', 'TLSv1/SSLv3', 256)
 server: selected protocol is now None
Needed 3 calls to complete do_handshake().
Needed 1 calls to complete write().
Needed 2 calls to complete read().
Needed 2 calls to complete unwrap().
ok

--
Ran 1 test in 0.058s

OK
1 test OK.

Total duration: 413 ms
Tests result: SUCCESS

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread david-cpi

david-cpi added the comment:

Hello Victor,

in 3.6.1 the test passes but it's because on sub-test was removed.

The one generating the issue is NetworkedBIOTests which is not found in 3.6.1.

in 3.5.2:
if support.is_resource_enabled('network'):
tests.append(NetworkedTests)
tests.append(NetworkedBIOTests)
in 3.6.1
if support.is_resource_enabled('network'):
tests.append(NetworkedTests)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread david-cpi

david-cpi added the comment:

Hi Victor,
I will try during the day and get back with the logs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread STINNER Victor

STINNER Victor added the comment:

David: can you please check if you get the same error with Python 3.6, or even 
the development version (Git master branch)?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread STINNER Victor

STINNER Victor added the comment:

Oh, I missed the attached test.log file. So, it's CentOS 7.3.1611 and the full 
error message is:

== CPython 3.5.2 (default, Apr 29 2017, 16:07:16) [GCC 4.8.5 20150623 (Red Hat 
4.8.5-11)]
==   Linux-3.10.0-514.16.1.el7.x86_64-x86_64-with-centos-7.3.1611-Core 
little-endian
==   hash algorithm: siphash24 64bit
==   /home/vagrant/Downloads/Python-3.5.2/build/test_python_16502
...
[1/1/1] test_ssl
test_ssl: testing with 'OpenSSL 1.0.1e-fips 11 Feb 2013' (1, 0, 1, 5, 15)
  under Linux ('CentOS Linux', '7.3.1611', 'Core')
  HAS_SNI = True
  OP_ALL = 0x83f7
  OP_NO_TLSv1_1 = 0x1000
...
test_read_write_data (test.test_ssl.NetworkedBIOTests) ... Needed 3 calls to 
complete do_handshake().
Needed 1 calls to complete write().
ERROR
...
==
ERROR: test_read_write_data (test.test_ssl.NetworkedBIOTests)
--
Traceback (most recent call last):
  File "/home/vagrant/Downloads/Python-3.5.2/Lib/test/test_ssl.py", line 1785, 
in test_read_write_data
buf = self.ssl_io_loop(sock, incoming, outgoing, sslobj.read, 1024)
  File "/home/vagrant/Downloads/Python-3.5.2/Lib/test/test_ssl.py", line 1724, 
in ssl_io_loop
sock.sendall(buf)
BrokenPipeError: [Errno 32] Broken pipe

--
Ran 117 tests in 39.538s

FAILED (errors=1, skipped=8)
/home/vagrant/Downloads/Python-3.5.2/Lib/unittest/case.py:628: ResourceWarning: 
unclosed 
  outcome.errors.clear()
test test_ssl failed

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread STINNER Victor

STINNER Victor added the comment:

@david-cpi: Can you please elaborate?

* What is your Centos full version?
* How do you get Python 3.5? Tarball from python.org?
* What is the error message?

"except: pass" is bad practice, you must catch a specific exception type.

It seems very strange to have to ignore errors on sendall().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-05-02 Thread Xiang Zhang

Xiang Zhang added the comment:

The failure can't be reproduced by me, 3.5 on CentOS 7.1.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-04-30 Thread Xiang Zhang

Changes by Xiang Zhang :


--
nosy: +haypo, xiang.zhang

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30212] test_ssl.py is broken in Centos7

2017-04-29 Thread david-cpi

New submission from david-cpi:

To make the test pass, I added the following try statement:
try: 
 sock.sendall(buf)
except:
 pass

--
components: Tests
files: test.log
messages: 292608
nosy: david-cpi
priority: normal
severity: normal
status: open
title: test_ssl.py is broken in Centos7
type: compile error
versions: Python 3.5
Added file: http://bugs.python.org/file46844/test.log

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com