Py.test skip messages don't show in jenkins
I solved it using this line as the first line of the test:

pytest.skip("Bug 1234: This does not work")

I'd rather have used one of the pytest decorators, but this'll do.
I have a minor issue using py.test for my unit tests.
I use py.test to run my tests and output a junitxml report of the tests.
This xml report is imported in jenkins and generates nice statistics.
When I use a test class which derives from unittest.TestCase, 
I skip expected failures using:

@unittest.skip("Bug 1234 : This does not work")

This message also shows up in jenkins when selecting this test.
When I don't use a unittest.TestCase class, e.g. to use py.test parametrize functionality,
I skip expected failures using:

@pytest.mark.xfail(reason="Bug 1234 : This does not work", run=False)

But then this reason is not actually displayed in jenkins, instead it will say:

Skip Message
expected test failure

How can I fix this?