summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeop.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-13/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* fix several compile() issues by translating newlines in the tokenizerBenjamin Peterson2009-11-121-4/+0
|
* Adding tests derived from the Jython project. These are primarily tests ofFrank Wierzbicki2009-08-021-0/+116
| | | | | | | 'single' statements with partial sentences (so they test things like "try:" in interactive mode). Others tests hit areas that previously failed in Jython. A couple still fail in Jython, mainly due to the difficulty of parsing partial sentences (but should be fixed by Jython 2.6).
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-3/+3
|
* Whitespace normalization.Tim Peters2003-06-151-6/+6
|
* minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.Samuele Pedroni2003-05-171-1/+2
|
* beefed up version: jython support, covers now fixed differences between ↵Samuele Pedroni2003-05-171-11/+105
| | | | CPython/Jython.
* - Finally fixed the bug in compile() and exec where a string endingGuido van Rossum2003-02-131-3/+4
| | | | | | | | | with an indented code block but no newline would raise SyntaxError. This would have been a four-line change in parsetok.c... Except codeop.py depends on this behavior, so a compilation flag had to be invented that causes the tokenizer to revert to the old behavior; this required extra changes to 2 .h files, 2 .c files, and 2 .py files. (Fixes SF bug #501622.)
* 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. :)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+7
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Whitespace normalization.Tim Peters2001-08-091-4/+4
|
* Patch #442866: Tests for codeop.py.Martin v. Löwis2001-07-301-0/+90