From 13bc24b4a4f14d3f63acdd6ffe57c926ef3777d1 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 11 Aug 2010 00:19:53 +0000 Subject: TestCase.skipTest is not defined in Python 2.6 --- Lib/test/test_subprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 87af4ad..7dde013 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. -- cgit v0.12