示例#1
0
 def skip_capture_func():
     st = compatability.capture_exception(func, SkipTest)
     if st is not None:
         dependencies.skip_test(test_case, st.message)
示例#2
0
 def check_dependencies(self, test_self):
     """If a dependency has failed, SkipTest is raised."""
     if self.dependency_failure is not None and \
        self.dependency_failure != self and not self.entry.info.always_run:
         home = self.dependency_failure.entry.home
         dependencies.skip_test(test_self, "Failure in %s" % home)