Added test for issue #1169

(I undid my fix, checked for failure, redid my fix and it passes)
This commit is contained in:
Lee Kamentsky 2015-11-04 14:24:22 -05:00
parent 8de2c035e2
commit 1833547936
1 changed files with 13 additions and 0 deletions

View File

@ -718,3 +718,16 @@ def test_unittest_raise_skip_issue748(testdir):
*SKIP*[1]*test_foo.py*skipping due to reasons*
*1 skipped*
""")
def test_unittest_skip_issue1169(testdir):
testpath = testdir.makepyfile(test_foo="""
import unittest
class MyTestCase(unittest.TestCase):
@unittest.skip
def test_skip(self):
self.fail()
""")
reprec = testdir.inline_run(testpath)
reprec.assertoutcome(passed=1)