mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Automatic commit Sat Jan 11 03:00:02 PST 2014
This commit is contained in:
@@ -124,7 +124,7 @@ Blockly.Python['unittest_fail'] = function(block) {
|
||||
['def ' + Blockly.Python.FUNCTION_NAME_PLACEHOLDER_ + '(message):',
|
||||
' # Always assert an error.',
|
||||
' if ' + resultsVar + ' == None:',
|
||||
' raise Exception("Orphaned assert equals: ' + message + '")',
|
||||
' raise Exception("Orphaned assert equals: " + message)',
|
||||
' ' + resultsVar + '.append((False, "Fail.", message))']);
|
||||
return functionName + '(' + message + ')\n';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user