mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
TestCase.skipTest is not defined in Python 2.6
This commit is contained in:
parent
935f09aea1
commit
13bc24b4a4
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue