TestCase.skipTest is not defined in Python 2.6
This commit is contained in:
parent
935f09aea1
commit
13bc24b4a4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue