[GRASS-dev] Add a possible decorators to gunittest

Pietro peter.zamb at gmail.com
Tue Mar 29 06:47:57 PDT 2016


Hi Vaclav,

On Tue, Mar 29, 2016 at 3:02 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
> Although I can see advantages of decorators, Python unittest package uses
> setUp() and tearDown() functions for that purpose. Introducing another
> mechanism might interfere with the execution of the tests. If nothing else,
> you would need to re-raise the exception to signal that the test failed. I
> suggest to try setUp() and tearDown() as unittest advocates and only when it
> won't work look at decorators (which are used in unittest but it different
> way).

ok, I changed it in r68183, now is using setUp and tearDown.

All the best

Pietro


More information about the grass-dev mailing list