Use pytest.skip instead of SkipTest.