Issue 3620: test_smtplib is flaky (original) (raw)

Created on 2008-08-20 15:09 by benjamin.peterson, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg71549 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-08-20 15:09
This is from the sparc Unbuntu 3.0 bot. I'm having trouble reproducing it, though. test test_smtplib produced unexpected output: ********************************************************************** *** line 2 of actual output doesn't appear in expected output after line 1: + error: uncaptured python exception, closing channel <test.test_smtplib.SimSMTPChannel 127.0.0.1:38832 at 0x268d0a8> (<class 'socket.error'>:[Errno 9] Bad file descriptor [/home/pybot/buildarea/3.0.klose-ubuntu-sparc/build/Lib/asyncore.py|readwrite 100] [/home/pybot/buildarea/3.0.klose-ubuntu-sparc/build/Lib/asyncore.py handle_write_event
msg71641 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2008-08-21 13:40
The failure happens even when test_smtplib runs before both test_asyncore and test_asynchat (*). So the latter can't be the culprit. (*) http://www.python.org/dev/buildbot/3.0.stable/sparc%20Debian%203.0/builds/419/step-test/0
msg104903 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2010-05-03 23:03
Adding this: def handle_error(self): raise ...to SimSMTPChannel class would help to provide a clearer error message to understand where exactly EBADF comes from, altough I think this was an old asyncore bug which have already been fixed. Is this still reproducible on Python 3.2?
msg104910 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-05-04 02:39
If it would provide clearer error message in cases of failure, it sounds like a reasonable thing to add whether or not the failure in this issue is still happening.
msg105163 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2010-05-06 20:22
Done in r80882 for ftplib and smtplib modules.
msg120839 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-11-09 03:13
Looking back over the logs (via bbreport) I don't see any failures of test_smtplib that match the report in this issue. There were three in the last while, two of which look like network issues on the same machine (and thus probably not a test problem per se) and one of which (solaris) had multiple errors but succeeded when rerun immediately. While there maybe a remaining flakiness issue with test_smtplib, it doesn't seem to be the error described here, and I don't think it rates critical.
msg221708 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-27 18:55
Can this be closed as "out of date"?
History
Date User Action Args
2022-04-11 14:56:37 admin set github: 47870
2019-05-14 15:14:16 SilentGhost set status: open -> closedresolution: out of datestage: resolved
2019-03-15 23:56:58 BreamoreBoy set nosy: - BreamoreBoy
2014-06-27 18:55:10 BreamoreBoy set nosy: + BreamoreBoymessages: + versions: + Python 3.4, Python 3.5, - Python 3.2
2010-11-09 03:13:30 r.david.murray set priority: critical -> normalmessages: + keywords: + buildbotresolution: fixed -> (no value)stage: resolved -> (no value)
2010-07-13 14:37:55 BreamoreBoy set type: behaviorresolution: fixedstage: resolved
2010-05-06 20:22:49 giampaolo.rodola set messages: +
2010-05-04 02:39:13 r.david.murray set nosy: + r.david.murraymessages: +
2010-05-03 23:03:43 giampaolo.rodola set messages: +
2010-04-28 02:29:55 terry.reedy set versions: + Python 3.2, - Python 3.0
2008-10-20 15:13:31 matejcik set nosy: + matejcik
2008-10-01 11:22:15 giampaolo.rodola set nosy: + giampaolo.rodola
2008-08-21 13:40:46 pitrou set nosy: + pitroumessages: + title: test_asyncore is not cleanup after its self? -> test_smtplib is flaky
2008-08-20 15:09:28 benjamin.peterson create