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

View file

@ -635,8 +635,8 @@ class ProcessTestCase(unittest.TestCase):
sh = os.path.join(prefix, name) sh = os.path.join(prefix, name)
if os.path.isfile(sh): if os.path.isfile(sh):
shells.append(sh) shells.append(sh)
if not shells: # Will probably work for any shell but csh. 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' sh = '/bin/sh'
if os.path.isfile(sh) and not os.path.islink(sh): if os.path.isfile(sh) and not os.path.islink(sh):
# Test will fail if /bin/sh is a symlink to csh. # Test will fail if /bin/sh is a symlink to csh.