From 18335479369e84ce20792ec747bc260556830c28 Mon Sep 17 00:00:00 2001 From: Lee Kamentsky Date: Wed, 4 Nov 2015 14:24:22 -0500 Subject: [PATCH] Added test for issue #1169 (I undid my fix, checked for failure, redid my fix and it passes) --- testing/test_unittest.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/testing/test_unittest.py b/testing/test_unittest.py index aa055f89c..287b8d3ac 100644 --- a/testing/test_unittest.py +++ b/testing/test_unittest.py @@ -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) + \ No newline at end of file