summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grammar.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-01-19 03:26:33 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-01-19 03:26:33 (GMT)
commite1bb5f9814a9dffbc05c5c5a24fe15082a8b3e04 (patch)
tree54fb921c06dfc947427b0fd0b06c511e3f80a080 /Lib/test/test_grammar.py
parent047e2c93e29ceaa9d321a6e81e6fa9db830173da (diff)
downloadcpython-e1bb5f9814a9dffbc05c5c5a24fe15082a8b3e04.zip
cpython-e1bb5f9814a9dffbc05c5c5a24fe15082a8b3e04.tar.gz
cpython-e1bb5f9814a9dffbc05c5c5a24fe15082a8b3e04.tar.bz2
make error msg more informative when test of exec fails
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r--Lib/test/test_grammar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index 503cc80..b64fcdf 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -380,7 +380,7 @@ l = {}
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