]> granicus.if.org Git - python/commit
Merged revisions 84209, 84214 via svnmerge from
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 19 Aug 2010 21:50:08 +0000 (21:50 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 19 Aug 2010 21:50:08 +0000 (21:50 +0000)
commitb1147f5d0a89a24a978d9db93750ad5cc3829542
tree5c80e35204bbb87eefec882467a95645c4501c11
parent3478ac066b1d5367b5f818df7aa65a1a16912755
Merged revisions 84209, 84214 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84209 | amaury.forgeotdarc | 2010-08-19 19:43:15 +0200 (jeu., 19 août 2010) | 5 lines

  Check the return values for all functions returning an ast node.
  Failure to do it may result in strange error messages or even crashes,
  in admittedly convoluted cases that are normally syntax errors, like:
      def f(*xx, __debug__): pass
........
  r84214 | amaury.forgeotdarc | 2010-08-19 23:32:38 +0200 (jeu., 19 août 2010) | 3 lines

  Add tests for r84209 (crashes in the Ast builder)
  Also remove one tab, and move a check closer to the possible failure.
........
Lib/test/test_syntax.py
Python/ast.c