Commit 13bc24b4 authored by Florent Xicluna's avatar Florent Xicluna

TestCase.skipTest is not defined in Python 2.6

parent 935f09ae
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment