Re: assertRaises() help

2015-05-27 Thread Cameron Simpson
On 27May2015 17:13, Vincent Davis vinc...@vincentdavis.net wrote: On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson c...@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

Re: assertRaises() help

2015-05-27 Thread Steven D'Aprano
On Thu, 28 May 2015 08:09 am, Vincent Davis wrote: I am trying to add a test to pandas Int the first case I assert that I get a NaT value, in the second I what to test that I get a value error. Your sentence has just enough typos to lead me to doubt I understand you. What do you mean, add a

Re: assertRaises() help

2015-05-27 Thread Cameron Simpson
On 27May2015 16:09, Vincent Davis vinc...@vincentdavis.net wrote: I am trying to add a test to pandas Int the first case I assert that I get a NaT value, in the second I what to test that I get a value error. def test_day_not_in_month_coerce_true () works I am trying to duplicate them with

Re: assertRaises() help

2015-05-27 Thread Vincent Davis
On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson c...@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 Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list