diff options
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 94b2a4f312..45449ee67b 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -16,7 +16,7 @@ def test(method, input, output, *args): value = apply(f, args) except: value = sys.exc_type - exc = sys.exc_info() + exc = sys.exc_info()[:2] else: exc = None if value != output: @@ -24,7 +24,7 @@ def test(method, input, output, *args): print 'no' print '*',f, `input`, `output`, `value` if exc: - print ' value == %s: %s' % (exc[:2]) + print ' value == %s: %s' % (exc) else: if verbose: print 'yes' |