How to optimise this code?

Hyuga hyugaricdeau at gmail.com
Wed Aug 22 10:22:28 EDT 2007


On Aug 22, 4:52 am, "David N Montgomery" <monty.pyt... at fastmail.fm>
wrote:
> unittest is the best choice for my needs and works perfectly in Eclipse.
> Unfortunately though it (and many other things) does not work under the
> application we have to use to run our python scripts.
>
> This leaves me with 'functionToCall = getattr(self, "testCase%s" % tc)'.
> This achieves the optimisation/simplification I had been looking for.
>
> Thank you once again.

Just out of curiosity, what about your environment prevents you from
using unittest?

Hyuga




More information about the Python-list mailing list