summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9125: Update parser module for "except ... as ..." syntax.Mark Dickinson2010-06-301-0/+6
|
* Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-1/+1
|
* Issue #2333: Backport set and dict comprehensions syntax.Alexandre Vassalotti2010-01-111-0/+12
|
* Issue #2335: Backport set literals syntax from Python 3.x.Alexandre Vassalotti2010-01-091-0/+13
|
* fix test_parser from tokenizer tweakBenjamin Peterson2009-12-061-4/+4
|
* fix several compile() issues by translating newlines in the tokenizerBenjamin Peterson2009-11-121-3/+3
|
* Allow multiple context managers in one with statement, as proposedGeorg Brandl2009-05-251-0/+1
| | | | | | | in http://codereview.appspot.com/53094 and accepted by Guido. The construct is transformed into multiple With AST nodes so that there should be no problems with the semantics.
* #4529: fix parser's validation for try-except-finally statements.Georg Brandl2008-12-051-0/+10
|
* #4396 make the parser module correctly validate the with syntaxBenjamin Peterson2008-11-241-0/+4
|
* #4048 make the parser module accept relative imports as validBenjamin Peterson2008-11-031-0/+2
|
* make sure the parser flags and passed onto the compilerBenjamin Peterson2008-10-311-0/+9
| | | | | This fixes "from __future__ import unicode_literals" in an exec statment See #4225
* check that the parser module can handle the new keyword syntaxBenjamin Peterson2008-08-191-0/+1
|
* Note that the stderr output of the test is intentional.Martin v. Löwis2008-03-181-0/+2
|
* Issue 1881. Increased the stack limit from 500 to 1500. Also addedFacundo Batista2008-02-231-0/+17
| | | | | | a test for this (and because of this test you'll see in stderr a message that parser.c sends before raising MemoryError). Thanks Ralf Schmitt.
* SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.Guido van Rossum2007-07-181-0/+6
| | | | (Slightly tweaked for style and refcounts.)
* Whitespace normalization.Tim Peters2006-08-251-1/+1
|
* Expose column offset information in parse trees.Jeremy Hylton2006-08-221-0/+38
|
* Add another little test to make sure we roundtrip multiple list comp ifs ok.Neal Norwitz2006-04-121-0/+4
| | | | Add tests for generator expressions too.
* Merge ast-branch to headJeremy Hylton2005-10-201-1/+23
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
* PEP 342 implementation. Per Guido's comments, the generator throw()Phillip J. Eby2005-08-021-0/+11
| | | | | method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too.
* Whitespace normalization.Tim Peters2005-04-201-1/+1
|
* Flush out support for ``class B(): pass`` syntax by adding support to theBrett Cannon2005-04-091-0/+3
| | | | | | 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix.
* SF patch #1007189, multi-line imports, for instance:Anthony Baxter2004-08-311-0/+14
| | | | | "from blah import (foo, bar baz, bongo)"
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-021-2/+10
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* SF patch #872326: Generator expression implementationRaymond Hettinger2004-05-191-0/+2
| | | | | | | | | | | | | | (Code contributed by Jiwon Seo.) The documentation portion of the patch is being re-worked and will be checked-in soon. Likewise, PEP 289 will be updated to reflect Guido's rationale for the design decisions on binding behavior (as described in in his patch comments and in discussions on python-dev). The test file, test_genexps.py, is written in doctest format and is meant to exercise all aspects of the the patch. Further additions are welcome from everyone. Please stress test this new feature as much as possible before the alpha release.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-5/+4
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Whitespace normalization.Tim Peters2003-02-191-1/+1
|
* Add tests and news entry about parser errors from bug #678518.Neal Norwitz2003-02-101-0/+17
|
* Teach the parsermodule about floor division. FixesMichael W. Hudson2003-01-291-0/+5
| | | | | | [ 676521 ] parser module validation failure bugfix candidate.
* Standardize behavior: no docstrings in test functions.Guido van Rossum2002-08-221-5/+7
|
* 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. :)
* Remove some now-obsolete generator future statements.Tim Peters2002-04-011-8/+4
| | | | | I left the email pkg alone; I'm not sure how Barry would like to handle that.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-2/+10
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Use the "st" versions of the "ast" calls in the parser module -- there isFred Drake2001-07-171-2/+2
| | | | no reason to pretend the syntax trees we're dealing with are abstract.
* Added tests for the new yield support in the parser module.Fred Drake2001-07-171-1/+132
| | | | (Should be merged with descr branch.)
* Convert the parser module test to use PyUnit.Fred Drake2001-06-041-208/+212
|
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Add more regression tests, including for the import statement variations.Fred Drake2001-01-071-10/+35
| | | | | These will detect regression on SF bug #127271 and other import statement bugs.
* Added tests to avoid regression on bug #125375.Fred Drake2000-12-111-1/+20
| | | | | | | | roundtrip(): Show the offending syntax tree when things break; this makes it a little easier to debug the module by adding test cases. (Still need better tests for this module, but there's not enough time today.)
* Update the parser module to support augmented assignment.Fred Drake2000-08-251-22/+84
| | | | Add some test cases.
* Add a minimal test suite for the parser module.Fred Drake2000-08-211-0/+116