]> granicus.if.org Git - python/commitdiff
TestCase.skipTest is not defined in Python 2.6
authorFlorent Xicluna <florent.xicluna@gmail.com>
Wed, 11 Aug 2010 00:19:53 +0000 (00:19 +0000)
committerFlorent Xicluna <florent.xicluna@gmail.com>
Wed, 11 Aug 2010 00:19:53 +0000 (00:19 +0000)
Lib/test/test_subprocess.py

index 87af4ad6c82e491fa76bbe54461dfeec3911afd2..7dde01313edf5b602b134da83fabc3c85fc34a8a 100644 (file)
@@ -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.