TestCase.skipTest is not defined in Python 2.6

This commit is contained in:
Florent Xicluna 2010-08-11 00:19:53 +00:00
parent 935f09aea1
commit 13bc24b4a4
1 changed files with 2 additions and 2 deletions

View File

@ -636,7 +636,7 @@ class ProcessTestCase(unittest.TestCase):
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")
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.