How to optimise this code?

Hyuga hyugaricdeau at
Wed Aug 22 16:22:28 CEST 2007

On Aug 22, 4:52 am, "David N Montgomery" <monty.pyt... at>
> 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?


More information about the Python-list mailing list