New issue 480: SkipTest is not handled properly in setUpModule
https://bitbucket.org/hpk42/pytest/issue/480/skiptest-is-not-handled-properly-in

Michel Albert:

The [official python 
docs](http://docs.python.org/3/library/unittest.html?highlight=unittest#setupmodule-and-teardownmodule)
 state the following:

> If an exception is raised in a setUpModule then none of the tests in the 
> module will be run and the tearDownModule will not be run. If the exception 
> is a SkipTest exception then the module will be reported as having been 
> skipped instead of as an error.

I needed to implement this in one of my current projects. Both the default 
unittest runner and nosetests handle this correctly.

It seems though that py.test does not handle this and reports each test in the 
module as "Error".


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to