summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@worldonline.dk>2001-12-09 16:06:29 (GMT)
committerFinn Bock <bckfnn@worldonline.dk>2001-12-09 16:06:29 (GMT)
commited69aeedb9031d632c169c8c570777426842dce0 (patch)
tree442ecba07c9735a0b27e48efc8feb0374bc00b00
parentd08011a0e1ec2f3eeaa089ba69eb9ba68941277f (diff)
downloadcpython-ed69aeedb9031d632c169c8c570777426842dce0.zip
cpython-ed69aeedb9031d632c169c8c570777426842dce0.tar.gz
cpython-ed69aeedb9031d632c169c8c570777426842dce0.tar.bz2
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".
-rw-r--r--Lib/test/test_string.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py
index 3574719..4c5a60a 100644
--- a/Lib/test/test_string.py
+++ b/Lib/test/test_string.py
@@ -21,6 +21,7 @@ def test(name, input, output, *args):
value = apply(f, (input,) + args)
except:
value = sys.exc_type
+ f = name
if value != output:
if verbose:
print 'no'