[New-bugs-announce] [issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly
STINNER Victor
report at bugs.python.org
Mon Mar 18 10:57:13 EDT 2019
New submission from STINNER Victor <vstinner at redhat.com>:
https://buildbot.python.org/all/#/builders/21/builds/2512
======================================================================
FAIL: test_logout (test.test_imaplib.RemoteIMAP_STARTTLSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/3.x.edelsohn-rhel-z/build/Lib/test/test_imaplib.py", line 946, in test_logout
self.assertEqual(rs[0], 'BYE')
AssertionError: 'NO' != 'BYE'
- NO
+ BYE
The logout() returns 'NO' if *any* exception is raised:
try: typ, dat = self._simple_command('LOGOUT')
except: typ, dat = 'NO', ['%s: %s' % sys.exc_info()[:2]]
Attached PR proposes a fix.
----------
components: Library (Lib)
messages: 338233
nosy: vstinner
priority: normal
severity: normal
status: open
title: test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36348>
_______________________________________
More information about the New-bugs-announce
mailing list