Skip to content

Commit 7d77774

Browse files
Paul Sokolovskypi-anl
authored andcommitted
unittest: Add TestCase.skipTest() method.
Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent 5d3a44c commit 7d77774

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python-stdlib/unittest/unittest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class TestCase:
3333
def __init__(self):
3434
pass
3535

36+
def skipTest(self, reason):
37+
raise SkipTest(reason)
38+
3639
def fail(self, msg=""):
3740
assert False, msg
3841

0 commit comments

Comments
 (0)