Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91338

Re: assertRaises() help

Date 2015-05-28 10:21 +1000
From Cameron Simpson <cs@zip.com.au>
Subject Re: assertRaises() help
References <CALyJZZWAL8O5DH9bq+92hRVFGmsjfVdx=jpu9k0_231J_5rVBw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.111.1432772475.5151.python-list@python.org> (permalink)

Show all headers | View raw


On 27May2015 17:13, Vincent Davis <vincent@vincentdavis.net> wrote:
>On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson <cs@zip.com.au> 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 <cs@zip.com.au>

Acceptance Testing: Dropping your mods straight into the production
                    environment to see if the users will accept them.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: assertRaises() help Cameron Simpson <cs@zip.com.au> - 2015-05-28 10:21 +1000

csiph-web