From e1bb5f9814a9dffbc05c5c5a24fe15082a8b3e04 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 19 Jan 2001 03:26:33 +0000 Subject: [PATCH] make error msg more informative when test of exec fails --- Lib/test/test_grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 503cc80c0bf..b64fcdf8ca8 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -380,7 +380,7 @@ def f(): exec 'global a; a = 1; b = 2' in g, l if g.has_key('__builtins__'): del g['__builtins__'] if l.has_key('__builtins__'): del l['__builtins__'] -if (g, l) != ({'a':1}, {'b':2}): raise TestFailed, 'exec ... in g, l' +if (g, l) != ({'a':1}, {'b':2}): raise TestFailed, 'exec ... in g (%s), l (%s)' %(g,l) ### compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef