[Python-Dev] Trying to build from source, test-poplib fails
Serhiy Storchaka
storchaka at gmail.com
Mon Apr 9 04:30:17 EDT 2018
08.04.18 19:10, Antoine Pitrou пише:
> On Sat, 7 Apr 2018 17:31:47 -0500
> Skip Montanaro <skip.montanaro at gmail.com> wrote:
>> It's been a long while since I rebuilt Python from the Git source. I
>> tried for the first time the other day. Everything passed except
>> test_poplib and test_asyncio. The former just runs and runs and runs.
>> Here's the first traceback I encounter when executing ./python
>> Lib/test/test_poplib.py:
>>
>> test_stls_context (__main__.TestPOP3Class) ... Exception in thread Thread-16:
>> Traceback (most recent call last):
>> File "/home/skip/src/python/cpython/Lib/threading.py", line 917, in
>> _bootstrap_inner
>> self.run()
>> File "Lib/test/test_poplib.py", line 227, in run
>> asyncore.loop(timeout=0.1, count=1)
>> File "/home/skip/src/python/cpython/Lib/asyncore.py", line 207, in loop
>> poll_fun(timeout, map)
>> File "/home/skip/src/python/cpython/Lib/asyncore.py", line 150, in poll
>> read(obj)
>> File "/home/skip/src/python/cpython/Lib/asyncore.py", line 87, in read
>> obj.handle_error()
>> File "/home/skip/src/python/cpython/Lib/asyncore.py", line 83, in read
>> obj.handle_read_event()
>> File "/home/skip/src/python/cpython/Lib/asyncore.py", line 422, in
>> handle_read_event
>> self.handle_read()
>> File "Lib/test/test_poplib.py", line 194, in handle_read
>> self._do_tls_handshake()
>> File "Lib/test/test_poplib.py", line 174, in _do_tls_handshake
>> self.socket.do_handshake()
>> File "/home/skip/src/python/cpython/Lib/ssl.py", line 1108, in do_handshake
>> self._sslobj.do_handshake()
>> ssl.SSLError: [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert
>> certificate unknown (_ssl.c:1049)
> [...]
>
> I get the same issues too, and this has been happening for quite some
> time. The tests and/or poplib itself may be written in a fragile way.
I get the different issue with test_poplib (running with the -j option).
All tests except test_multiprocessing_fork are passed, and test_poplib
hangs. I thought it is a misconfiguration on my computer.
More information about the Python-Dev
mailing list