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

@ -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.