Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: unittest weirdness Date: Tue, 11 Mar 2014 22:13:39 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 13 Message-ID: References: NNTP-Posting-Host: panix3.panix.com X-Trace: reader1.panix.com 1394576019 3779 166.84.1.3 (11 Mar 2014 22:13:39 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 11 Mar 2014 22:13:39 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:68242 In Ethan Furman writes: > if missing: > raise ValueError('invoices %r missing from batch' % missing) It's been a while since I wrote test cases, but I recall using the assert* methods (assertEqual, assertTrue, etc.) instead of raising exceptions. Perhaps that's the issue? -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.