Join GitHub today
nose's .setUp() and .tearDown() are not supported #377
py.test claims to support nose's class level setup and teardown. However nose will execute the
It's probably not so hard to do this but before diving into it I was wondering if this even is something py.test wants to support as it can have backwards incompatibility issues. So maybe the right answer is to simply document the limitation/incompatibility?
What backward compat issues do you see? If someone defines a setUp/tearDown in a non-unittest-deriving test class i guess she would expect them to run.
That being said, i slightly dislike "polluting" the non-unittest test class with redundant setup/teardown methods. It probably would also affect setUpClass, right?
however, i consider providing nose compatibility out of the box a possibly trumping goal. What do you think?