Hi Victor,

In data mercoledì 24 febbraio 2010 10:19:41, Victor Engmark ha scritto:
> On Tue, Feb 23, 2010 at 2:56 PM, Samuele Kaplun <[email protected]> 
wrote:
> > P.s. as a side note, I noticed you are using the "with" statement in your
> > code, but for the time being Invenio is going to still support Python
> > 2.4.x (which is what is available by default on SLC5).
> 
> Thanks for the heads up. Do you know how to count the *number* of
> warnings generated by a function in Python 2.4? I've asked at Stack
> Overflow
> <http://stackoverflow.com/questions/2324820/count-warnings-in-python-2-4>
> as well.

Unfortunately I have not experience with the warning module (although it would 
be useful in order to catch the warnings raised by run_sql from time to time, 
(e.g. when it had to truncate a value or similar)... 

The only thing I can suggest you is not to use warnings in your test :-) (but 
maybe someone on the list or stackoverlow might give you better hints ;-) ).

Cheers,
        Sam

-- 
Samuele Kaplun ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to