[issue32753] ssl.SSLError exceptions in test_poplib

2018-04-09 Thread INADA Naoki

INADA Naoki  added the comment:

On Ubuntu 17.10 (OpenSSL 1.0.2g), this patch fixes test_poplib error.
But I don't know this patch is right.

$ git diff
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py
index 6abdc93879..d7a8857b05 100644
--- a/Lib/test/test_poplib.py
+++ b/Lib/test/test_poplib.py
@@ -180,7 +180,8 @@ class DummyPOP3Handler(asynchat.async_chat):
 elif err.args[0] == ssl.SSL_ERROR_EOF:
 return self.handle_close()
 # TODO: SSLError does not expose alert information
-elif "SSLV3_ALERT_BAD_CERTIFICATE" in err.args[1]:
+elif ("SSLV3_ALERT_BAD_CERTIFICATE" in err.args[1]
+or "SSLV3_ALERT_CERTIFICATE_UNKNOWN" in err.args[1]):
 return self.handle_close()
 raise
 except OSError as err:

--
nosy: +inada.naoki

___
Python tracker 

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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-04 Thread Christian Heimes

Christian Heimes  added the comment:

It's a duplicate of #32706. The new cert validation code causes the handshake 
to terminate properly. The old asyncore based test routine is not able to 
handle this correctly when the machine is under heavy load.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_check_hostname() of test_ftplib started to fail randomly

___
Python tracker 

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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-02 Thread Yury Selivanov

Change by Yury Selivanov :


--
nosy:  -yselivanov

___
Python tracker 

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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-02 Thread R. David Murray

Change by R. David Murray :


--
nosy: +r.david.murray

___
Python tracker 

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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-02 Thread Yarko Tymciurak

Yarko Tymciurak  added the comment:

...also, my initial build (after inspecting git log) was from (as I usually do) 
master/HEAD;

To check that this was indeed from v3.7.0b1 release, I `distclean` and checked 
out the v3.7.0b1 tag, and rebuilt.   (Looks like same error / behavior).

--

___
Python tracker 

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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-02 Thread R. David Murray

Change by R. David Murray :


--
nosy: +christian.heimes

___
Python tracker 

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



[issue32753] ssl.SSLError exceptions in test_poplib

2018-02-02 Thread Yarko Tymciurak

New submission from Yarko Tymciurak :

Just built v3.7.0b1, and have the following test hangs (see attached).

My build is on Ubuntu 16.04;  lsb_release -a output:

LSB Version:
core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:Ubuntu 16.04.3 LTS
Release:16.04
Codename:   xenial

My "usual" config / build process:

$ make distclean
$ ./configure --enable-shared --enable-loadable-sqlite-extensions 
--with-system-ffi --with-ensurepip=upgrade --enable-optimizations
$ make -j

I have been building 3.7 weekly, from master, and I've never seen anything like 
this before.

--
components: asyncio
files: v3.7.0b1-test-failure.txt
messages: 311521
nosy: asvetlov, yarkot, yselivanov
priority: normal
severity: normal
status: open
title: ssl.SSLError exceptions in test_poplib
type: crash
versions: Python 3.7
Added file: https://bugs.python.org/file47421/v3.7.0b1-test-failure.txt

___
Python tracker 

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