summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* 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