summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-5/+5
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Patch #1642547: Fix an error/crash when encountering syntax errors in ↵Collin Winter2007-03-161-0/+50
| | | | | | complex if statements. Will backport.
* Fix bug #1565514, SystemError not raised on too many nested blocks.Neal Norwitz2006-10-281-0/+31
| | | | | | | It seems like this should be a different error than SystemError, but I don't have any great ideas and SystemError was raised in 2.4 and earlier. Will backport.
* Fix for SF bug 1569998: break permitted inside try.Jeremy Hylton2006-10-041-0/+14
| | | | | | | | The compiler was checking that there was something on the fblock stack, but not that there was a loop on the stack. Fixed that and added a test for the specific syntax error. Bug fix candidate.
* Patch #1542451: disallow continue anywhere under a finallyNeal Norwitz2006-08-211-0/+87
| | | | | | I'm undecided if this should be backported to 2.5 or 2.5.1. Armin suggested to wait (I'm of the same opinion). Thomas W thinks it's fine to go in 2.5.
* 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.