• Amaury Forgeot d'Arc's avatar
    Merged revisions 84209, 84214 via svnmerge from · 852fa9f0
    Amaury Forgeot d'Arc authored
    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.
    ........
    852fa9f0
test_syntax.py 18.3 KB