[py-dev] Note

Maciek Fijalkowski fijal at genesilico.pl
Sun Oct 22 22:39:30 CEST 2006

not to forget...

When writing tests for LSession/RSession and friends, there are two 
States of setups, one in tests and one in testing utility itself. They 
badly interfere (like setup_module called few times). I don't know if 
it's a bug or whatever. I can propose several things:
1. Not use setup_* in those tests (this is done by now)
2. Make sure that setup_module is never introduced twice for the same 
module (as a warning or whatever) - I think it's easy to implement and 
quite usefull, but still you cannot use two states
3. Make somehow two possible states - one for testing, one for running 
test suite, altough it's hard to do.

More information about the Pytest-dev mailing list