Commits

Vincent Legoll  committed 629398a

Fix 'trailing comma' test

  • Participants
  • Parent commits 0c0dd42

Comments (0)

Files changed (1)

File pypy/interpreter/astcompiler/test/test_astbuilder.py

         exc = py.test.raises(SyntaxError, self.get_ast, input).value
         input = "from x import a, b,"
         exc = py.test.raises(SyntaxError, self.get_ast, input).value
-        assert exc.msg == "trailing comma is only allowed with surronding " \
-            "parenthesis"
+        assert exc.msg == "trailing comma not allowed without " \
+                          "surrounding parentheses"
 
     def test_global(self):
         glob = self.get_first_stmt("global x")