Commits

Florent Xicluna  committed 40556ae

TestCase.skipTest is not defined in Python 2.6

  • Participants
  • Parent commits 4c523e1
  • Branches 2.6

Comments (0)

Files changed (1)

File Lib/test/test_subprocess.py

                     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.