Commit e96e1fd1 authored by Finn Bock's avatar Finn Bock

test(): Avoid a UnboundLocalError when a method is missing from both the string

module and from string methods.

This closes patch "[ #490811 ] Jython and test_string".
parent 920df3ac
...@@ -21,6 +21,7 @@ def test(name, input, output, *args): ...@@ -21,6 +21,7 @@ def test(name, input, output, *args):
value = apply(f, (input,) + args) value = apply(f, (input,) + args)
except: except:
value = sys.exc_type value = sys.exc_type
f = name
if value != output: if value != output:
if verbose: if verbose:
print 'no' print 'no'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment