New submission from STINNER Victor:
On the AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot, test_handle_write() of
test_asyncore now fails on calling asyncore.close_all() in tearDown().
Moreover, since my commit 7b9619ae249ed637924d1c76687b411061753e5a, the
following test_quick_connect() now fails on self.fail("join() timed out"). I
guess that asyncore.socket_map still contains unwanted sockets from
test_handle_write() which failed.
Attached PR should fix the test_handle_write() failure by calling
asyncore.close_all() with ignore_all=True.
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/174/steps/test/logs/stdio
======================================================================
ERROR: test_handle_write (test.test_asyncore.TestAPI_UseIPv6Poll)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/test/test_asyncore.py",
line 505, in tearDown
asyncore.close_all()
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/asyncore.py",
line 561, in close_all
x.close()
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/asyncore.py",
line 397, in close
self.socket.close()
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/socket.py",
line 417, in close
self._real_close()
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/socket.py",
line 411, in _real_close
_ss.close(self)
ConnectionResetError: [Errno 54] Connection reset by peer
======================================================================
FAIL: test_quick_connect (test.test_asyncore.TestAPI_UseIPv6Poll)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/test/support/__init__.py",
line 2042, in decorator
return func(*args)
File
"/usr/home/buildbot/python/3.x.koobs-freebsd-current.nondebug/build/Lib/test/test_asyncore.py",
line 800, in test_quick_connect
self.fail("join() timed out")
AssertionError: join() timed out
----------
components: Tests
messages: 291920
nosy: haypo
priority: normal
severity: normal
status: open
title: test_asyncore: test_handle_write() fails in tearDown()
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30106>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com