diff options
Diffstat (limited to 'Lib/test/test_coercion.py')
-rw-r--r-- | Lib/test/test_coercion.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py index 37d735b..ceea17b 100644 --- a/Lib/test/test_coercion.py +++ b/Lib/test/test_coercion.py @@ -96,7 +96,7 @@ def do_infix_binops(): x = eval('a %s b' % op) except: error = sys.exc_info()[:2] - print '... %s' % error[0] + print '... %s.%s' % (error[0].__module__, error[0].__name__) else: print '=', format_result(x) try: @@ -108,7 +108,7 @@ def do_infix_binops(): exec('z %s= b' % op) except: error = sys.exc_info()[:2] - print '... %s' % error[0] + print '... %s.%s' % (error[0].__module__, error[0].__name__) else: print '=>', format_result(z) @@ -121,7 +121,7 @@ def do_prefix_binops(): x = eval('%s(a, b)' % op) except: error = sys.exc_info()[:2] - print '... %s' % error[0] + print '... %s.%s' % (error[0].__module__, error[0].__name__) else: print '=', format_result(x) |