Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeder1.xsusenet.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'acceptance': 0.07; 'subject:help': 0.07; ':-)': 0.14; 'wed,': 0.15; '>on': 0.16; 'dropping': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'running:': 0.16; 'simpson': 0.16; 'wrote:': 0.16; 'first,': 0.20; 'to:name:python-list@python.org': 0.20; 'driven': 0.22; '2015': 0.23; 'cheers,': 0.24; 'header:In- Reply-To:1': 0.24; 'raise': 0.24; 'header:User-Agent:1': 0.26; 'environment': 0.29; 'to:addr:python-list': 0.35; 'thanks': 0.36; 'subject:: ': 0.37; 'unit': 0.38; 'pm,': 0.39; 'test': 0.39; 'to:addr:python.org': 0.39; 'skip:t 20': 0.40; 'content- disposition:inline': 0.60; 'your': 0.60; 'cameron': 0.66; 'production': 0.67; 'received:61': 0.72; 'hand': 0.82; '4:55': 0.84; 'received:110': 0.96 X-Authentication-Info: Submitted using ID cskk@bigpond.com X-Authority-Analysis: v=2.0 cv=F6HVh9dN c=1 sm=1 a=GrydsfihXcobDICre30Nlw==:17 a=yEdEr6MRgwAA:10 a=IkcTkHD0fZMA:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=h1PgugrvaO0A:10 a=mf9G4lZGAAAA:8 a=rk8op_n9GMPzWmPARhEA:9 a=QEXdDO2ut3YA:10 a=GrydsfihXcobDICre30Nlw==:117 Date: Thu, 28 May 2015 10:21:05 +1000 From: Cameron Simpson To: "python-list@python.org" Subject: Re: assertRaises() help MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) References: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432772475 news.xs4all.nl 2852 [2001:888:2000:d::a6]:56569 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91338 On 27May2015 17:13, Vincent Davis wrote: >On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson wrote: >> First, test your test by hand running: >> to_datetime('2015-02-29', coerce=False) >> _Does_ it raise ValueError? > >​Well that was not expected.​ Thanks See? If you'd just believed your unit test... :-) Welcome to test driven development! Cheers, Cameron Simpson Acceptance Testing: Dropping your mods straight into the production environment to see if the users will accept them.