code: def soft_fail(msg=''):
      
      global _soft_ctx
      if _soft_ctx:
          global _soft_err
          _soft_err.append('Fail: %s!' % msg if msg else 'Fail!')
          return
      fail(msg)
docs: Adds error message to soft errors list if within soft assertions context.
         Either just force test failure with the given message.