You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems it used to fail randomly in past too : bpo-30648
Well, test_logout() fails randomly every 6 months, but when it fails: we have zero info about the bug. The "NO" in the error means that an exception has been raised and the server didn't reply to the "LOGOUT" command.
Activity
vstinner commentedon Mar 18, 2019
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 + BYEThe logout() returns 'NO' if *any* exception is raised:
Attached PR proposes a fix.
tirkarthi commentedon Mar 18, 2019
Seems it used to fail randomly in past too : bpo-30648
vstinner commentedon Mar 18, 2019
Well, test_logout() fails randomly every 6 months, but when it fails: we have zero info about the bug. The "NO" in the error means that an exception has been raised and the server didn't reply to the "LOGOUT" command.
vstinner commentedon Mar 18, 2019
It's s390x RHEL 3.x.
vstinner commentedon Mar 19, 2019
See also bpo-35462.
vstinner commentedon Apr 15, 2019
New changeset 74125a6 by Victor Stinner in branch 'master':
bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411)
74125a6
vstinner commentedon Apr 15, 2019
I pushed a change to get more information if the test fails again.
vstinner commentedon Apr 15, 2019
New changeset 2815bf5 by Victor Stinner in branch '3.7':
bpo-36348: test_imaplib: add debug info (GH-12846)
2815bf5