summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_syntax.py
Commit message (Collapse)AuthorAgeFilesLines
* prevent assignment to set literalsBenjamin Peterson2010-06-241-0/+6
|
* #7092 - Silence more py3k deprecation warnings, using ↵Florent Xicluna2010-03-211-1/+3
| | | | test_support.check_py3k_warnings() helper.
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-5/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+5
| | | | Patch by flox
* improve several corner cases related with argument names in parenthesisBenjamin Peterson2009-11-191-1/+5
| | | | | | | | | - Fix #7362: give a good error message for parenthesized arguments with defaults. - Add a py3k warning for any parenthesized arguments since those are not allowed in Py3. This warning is not given in tuple unpacking, since that incurs the tuple unpacking warning.
* give a better error message when deleting ()Benjamin Peterson2009-06-131-0/+6
|
* remove error checks already done in set_context()Benjamin Peterson2009-06-081-3/+3
|
* fix syntax tests after formatting changeBenjamin Peterson2009-04-071-42/+84
|
* check for assignment to __debug__ during AST generationBenjamin Peterson2008-11-081-10/+8
| | | | Also, give assignment to None a better error message
* include filename and line number in SyntaxErrorBenjamin Peterson2008-08-161-1/+1
|
* #3219 repeated keyword arguments aren't allowed in function calls anymoreBenjamin Peterson2008-07-011-0/+5
|
* 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.