pytest support for unittest style fixtures

As with nose, I ran pytest on the tests written to demonstrate unittest fixtures.
Some surprises.
There are some differences, which I’ll list out in this post.

Before we get started, I’d like to express that I’m a huge fan of pytest.
The cool stuff in pytest far outweighs any invonvenience that it doesn’t behave exactly like unittest.

However, it’s good to know what the differences are, so you can be informed about how your unittests will run under pytest.

[Read more...]