From: Florent Xicluna Date: Wed, 11 Aug 2010 00:19:53 +0000 (+0000) Subject: TestCase.skipTest is not defined in Python 2.6 X-Git-Tag: v2.6.6rc2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13bc24b4a4f14d3f63acdd6ffe57c926ef3777d1;p=python TestCase.skipTest is not defined in Python 2.6 --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 87af4ad6c8..7dde01313e 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -635,8 +635,8 @@ class ProcessTestCase(unittest.TestCase): sh = os.path.join(prefix, name) if os.path.isfile(sh): shells.append(sh) - if not shells: # Will probably work for any shell but csh. - self.skipTest("bash or ksh required for this test") + if not shells: # Will probably work for any shell but csh. + return # skip test sh = '/bin/sh' if os.path.isfile(sh) and not os.path.islink(sh): # Test will fail if /bin/sh is a symlink to csh.