docstr: Calls func and succeeds if and only if no exception is raised
  (i.e. converts exception raising into a failed testcase). Returns
  the return value of func.
docstr_tok: ["Calls","func","and","succeeds","if","and","only","if","no","exception","is","raised","(","i.e",".","converts","exception","raising","into","a","failed","testcase",")",".","Returns","the","return","value","of","func","."]
code: def should_not_fail(self, func):
      """Calls func and succeeds if and only if no exception is raised
      (i.e. converts exception raising into a failed testcase). Returns
      the return value of func."""
      try:
          return func()
      except Exception as exc:
          self.fail(str(exc))
  
imports: from __future__ import absolute_import
  import os
  import unittest
  import tempfile
  from .Compiler import Errors
  from .CodeWriter import CodeWriter
  from .Compiler.TreeFragment import TreeFragment, strip_common_indent
  from .Compiler.Visitor import TreeVisitor, VisitorTransform
  from .Compiler import TreePath
label_desc: Use image node_id 11 for calling the CythonTest obj's underlying member method code with example usage: obj.should_not_fail(func) and returns: func