diff options
author | Guido van Rossum <guido@python.org> | 1998-03-26 19:42:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-26 19:42:58 (GMT) |
commit | 41360a4696f488e49e5409b3b1baf1fff6ae0044 (patch) | |
tree | 9c9b73b7446cc9fc36e09038bf26d889bb5b6f24 /Lib/test/test_strop.py | |
parent | cd0f59ea0824ad6f897f05c2db4d4471e47e6063 (diff) | |
download | cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.zip cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.tar.gz cpython-41360a4696f488e49e5409b3b1baf1fff6ae0044.tar.bz2 |
Mass check-in after untabifying all files that need it.
Diffstat (limited to 'Lib/test/test_strop.py')
-rw-r--r-- | Lib/test/test_strop.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_strop.py b/Lib/test/test_strop.py index a4f1882..bd31058 100644 --- a/Lib/test/test_strop.py +++ b/Lib/test/test_strop.py @@ -3,19 +3,19 @@ import strop, sys def test(name, input, output, *args): if verbose: - print 'string.%s%s =? %s... ' % (name, (input,) + args, output), + print 'string.%s%s =? %s... ' % (name, (input,) + args, output), f = getattr(strop, name) try: - value = apply(f, (input,) + args) + value = apply(f, (input,) + args) except: - value = sys.exc_type + value = sys.exc_type if value != output: - if verbose: - print 'no' - print f, `input`, `output`, `value` + if verbose: + print 'no' + print f, `input`, `output`, `value` else: - if verbose: - print 'yes' + if verbose: + print 'yes' test('atoi', " 1 ", 1) test('atoi', " 1x", ValueError) |