Skip to content

Instantly share code, notes, and snippets.

@bbayles
Created May 15, 2018 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bbayles/5158750b48a5accfceaa53a898b8b902 to your computer and use it in GitHub Desktop.
Save bbayles/5158750b48a5accfceaa53a898b8b902 to your computer and use it in GitHub Desktop.
Demonstrate test skipping
import unittest
class SampleTest(unittest.TestCase):
def test_skipTest(self):
self.skipTest('lowecase')
def test_SkipTest(self):
raise unittest.SkipTest('UpperCase')
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment