How can I skip a test in Python with pytest using Maxfail?

Can anyone please tell me how can I skip a test in Python with pytest using Maxfail.