ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #03555
Re: [Branch ~ffc-core/ffc/dev] Rev 1594: Add comment about how to deal correctly with warnings vs expections.
I thought about catching the exceptions, but it would make the
ufctest.h file even more complicated. But the format["exception"] =
format["warning"] trick is a good idea. I'm working on adding it.
--
Anders
On Sat, Jan 30, 2010 at 03:15:40PM +0100, Kristian Oelgaard wrote:
>
> Can't we just catch exceptions in the regression tests? Or is that inconvenient because all function tests are in the same cpp file?
> To implement your solution I guess we just need another function like the set_float_formatting()
> which does:
> format["exception"] = format["warning"]
> this function can be called from compiler.py when checking the options, will that work?
>
> Kristian
>
> On 30 January 2010 00:23, <noreply@xxxxxxxxxxxxx> wrote:
> >------------------------------------------------------------
> >revno: 1594
> >committer: Anders Logg <logg@xxxxxxxxx>
> >branch nick: ffc-dev
> >timestamp: Sat 2010-01-30 00:21:06 +0100
> >message:
> > Add comment about how to deal correctly with warnings vs expections.
> > I think I figured out the correct solution, but it doesn't have to
> > be implemented now.
> >modified:
> > ffc/cpp.py
> >
> >
>
> _______________________________________________
> Mailing list: https://launchpad.net/~ffc
> Post to : ffc@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ffc
> More help : https://help.launchpad.net/ListHelp
Attachment:
signature.asc
Description: Digital signature
References