better error message when crashing a yaml test
bzr revid: fp@tinyerp.com-20100901164207-g9p5o5p58310e0lp
This commit is contained in:
@@ -360,14 +360,14 @@ class YamlInterpreter(object):
|
||||
value = expression
|
||||
# raise YamlImportException('Unsupported column "%s" or value %s:%s' % (field_name, type(expression), expression))
|
||||
return value
|
||||
|
||||
|
||||
def process_context(self, node):
|
||||
self.context = node.__dict__
|
||||
if node.uid:
|
||||
self.uid = self.get_id(node.uid)
|
||||
if node.noupdate:
|
||||
self.noupdate = node.noupdate
|
||||
|
||||
|
||||
def process_python(self, node):
|
||||
def log(msg, *args):
|
||||
self.logger.log(logging.TEST, msg, *args)
|
||||
@@ -384,7 +384,7 @@ class YamlInterpreter(object):
|
||||
return
|
||||
except Exception, e:
|
||||
self.logger.debug('Exception during evaluation of !python block in yaml_file %s.', self.filename, exc_info=True)
|
||||
raise YamlImportAbortion(e)
|
||||
raise
|
||||
else:
|
||||
self.assert_report.record(True, python.severity)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user