from unittest import TestCase, skipIf @skipIf(True, "Skip Testing") class Tests(TestCase): def test_skip(self): "this test will fail - if not skipped" self.assertEqual(0, 1) Tests("test_skip").debug()