Also, I'll note that a failure acts like a thrown exception in the sense
that the function is exited at the failure point. I'm not sure how you
would achieve this without throwing an Exception. I'd bet that's what they
do internally.


On Thu, Feb 20, 2014 at 10:19 AM, Matthew Gidden <gidden@wisc.edu> wrote:

> will do
>
>
> On Thu, Feb 20, 2014 at 9:46 AM, Anthony Scopatz <notifications@github.com
> > wrote:
>
>> In tests/test_regression.py:
>>
>> > @@ -59,7 +59,7 @@ def test_regression(check_deterministic=False):
>> >              if os.path.isfile(tmp_file):
>> >                  try:
>> >                      nondeterm = compare_nondeterm(sim_files[f], tmp_file)
>> > -                except KeyError:
>> > +                except Exception:
>>
>>  Do you know what kind of exception nose throws when a test fails? I'm
>> unable to find it in their documentation.
>>
>> They don't throw any exceptions when a test fails :). It just fails.
>> Wouldn't a teardown() function be better for this than using exceptions?
>> See nose's with_setup() decorator.
>>
>> --
>> Reply to this email directly or view it on GitHub<https://github.com/cyclus/cycamore/pull/193/files#r9910412>
>> .
>>
>
>
>
> --
> Matthew Gidden
> Ph.D. Candidate, Nuclear Engineering
> The University of Wisconsin -- Madison
> Ph. 225.892.3192
>



-- 
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192