Tim Peters
f2715e0764
Whitespace normalization.
2003-02-19 02:35:07 +00:00
Neal Norwitz
9caf9c040e
Add tests and news entry about parser errors from bug #678518 .
2003-02-10 01:54:06 +00:00
Michael W. Hudson
5e83b7a9cc
Teach the parsermodule about floor division. Fixes
...
[ 676521 ] parser module validation failure
bugfix candidate.
2003-01-29 14:20:23 +00:00
Guido van Rossum
32c2ae7f4a
Standardize behavior: no docstrings in test functions.
2002-08-22 19:45:32 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
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. :)
2002-07-23 19:04:11 +00:00
Tim Peters
496563a514
Remove some now-obsolete generator future statements.
...
I left the email pkg alone; I'm not sure how Barry would like to handle
that.
2002-04-01 00:28:59 +00:00
Fred Drake
2e2be3760c
Change the PyUnit-based tests to use the test_main() approach. This
...
allows using the tests with unittest.py as a script. The tests will
still run when run as a script themselves.
2001-09-20 21:33:42 +00:00
Fred Drake
6e4f2c09df
Use the "st" versions of the "ast" calls in the parser module -- there is
...
no reason to pretend the syntax trees we're dealing with are abstract.
2001-07-17 19:33:25 +00:00
Fred Drake
cf580c7ea1
Added tests for the new yield support in the parser module.
...
(Should be merged with descr branch.)
2001-07-17 03:01:29 +00:00
Fred Drake
58422e5820
Convert the parser module test to use PyUnit.
2001-06-04 03:56:24 +00:00
Fredrik Lundh
f785042433
a bold attempt to fix things broken by MAL's verify patch: import
...
'verify' iff it's used by a test module...
2001-01-17 21:51:36 +00:00
Marc-André Lemburg
3661908a6a
This patch removes all uses of "assert" in the regression test suite
...
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.
2001-01-17 19:11:13 +00:00
Fred Drake
e3fb18c1c4
Add more regression tests, including for the import statement variations.
...
These will detect regression on SF bug #127271 and other import statement
bugs.
2001-01-07 06:02:19 +00:00
Fred Drake
e1578ce204
Added tests to avoid regression on bug #125375 .
...
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.)
2000-12-11 22:12:09 +00:00
Fred Drake
28f739aad4
Update the parser module to support augmented assignment.
...
Add some test cases.
2000-08-25 22:42:40 +00:00
Fred Drake
79ca79d1a9
Add a minimal test suite for the parser module.
2000-08-21 22:30:53 +00:00