summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1474677, non-keyword argument following keyword.Neal Norwitz2006-05-191-0/+3
|
* - Bug #1487966: Fix SystemError with conditional expression in assignmentNeal Norwitz2006-05-151-16/+19
| | | | Most of the test_syntax changes are just updating the numbers.
* Patch #1475845: Raise IndentationError for unexpected indent.Martin v. Löwis2006-05-041-2/+18
|
* Improved handling of syntax errors.Jeremy Hylton2006-01-271-0/+238
| | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c.
* Improve test coverage. Hope the test_file changes work the same on windows.Neal Norwitz2005-11-271-0/+12
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* SF patch 763201: handling of SyntaxErrors in symbol table buildJeremy Hylton2003-07-151-0/+15
| | | | Bug fix candidate.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Fix SF bug [ 561825 ] Confusing error for "del f()"Jeremy Hylton2002-05-311-0/+34
In the error message, say del for del and assign for everything else.