[pypy-svn] r66514 - in pypy/branch/parser-compiler/pypy/interpreter/astcompiler: . test
benjamin at codespeak.net
benjamin at codespeak.net
Wed Jul 22 21:18:21 CEST 2009
Author: benjamin
Date: Wed Jul 22 21:18:13 2009
New Revision: 66514
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/test/test_symtable.py
Log:
add quotes
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py Wed Jul 22 21:18:13 2009
@@ -69,7 +69,7 @@
return mangled
def note_yield(self, yield_node):
- raise SyntaxError("yield outside function", yield_node.lineno,
+ raise SyntaxError("'yield' outside function", yield_node.lineno,
yield_node.col_offset)
def note_return(self, ret):
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/test/test_symtable.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/test/test_symtable.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/test/test_symtable.py Wed Jul 22 21:18:13 2009
@@ -309,7 +309,7 @@
assert scp.is_generator
for input in ("yield x", "class y: yield x"):
exc = py.test.raises(SyntaxError, self.mod_scope, "yield x").value
- assert exc.msg == "yield outside function"
+ assert exc.msg == "'yield' outside function"
for input in ("yield\n return x", "return x\n yield"):
input = "def f():\n " + input
exc = py.test.raises(SyntaxError, self.func_scope, input).value
More information about the Pypy-commit
mailing list