Files
pytest2/testing
Omar Kohl d81f23009b Raise CollectError if pytest.skip() is called during collection
pytest.skip() must not be used at module level because it can easily be
misunderstood and used as a decorator instead of pytest.mark.skip, causing the
whole module to be skipped instead of just the test being decorated.

This is unexpected for users used to the @unittest.skip decorator and therefore
it is best to bail out with a clean error when it happens.

The pytest equivalent of @unittest.skip is @pytest.mark.skip .

Adapt existing tests that were actually relying on this behaviour and add a
test that explicitly test that collection fails.

fix #607
2016-06-24 20:56:21 +02:00
..
2016-06-22 14:39:33 +02:00
2016-06-22 16:03:52 +02:00
2016-06-22 14:39:33 +02:00
2016-06-22 14:39:33 +02:00
2016-06-22 14:39:33 +02:00
2016-05-18 21:35:31 +02:00
2016-01-25 23:18:04 -02:00