summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
Commit message (Collapse)AuthorAgeFilesLines
* SF patch #736962. Converted test_compile to unittest format.Raymond Hettinger2003-06-231-160/+140
|
* Added regression test for SF #757818Raymond Hettinger2003-06-201-0/+5
|
* Fix SF bug #688424, 64-bit test problemsNeal Norwitz2003-02-181-2/+7
|
* - Finally fixed the bug in compile() and exec where a string endingGuido van Rossum2003-02-131-0/+9
| | | | | | | | | 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.)
* SF #660455 : patch by NNorwitz.Guido van Rossum2003-02-121-6/+9
| | | | | | | | | | "Unsigned" (i.e., positive-looking, but really negative) hex/oct constants with a leading minus sign are once again properly negated. The micro-optimization for negated numeric constants did the wrong thing for such hex/oct constants. The patch avoids the optimization for all hex/oct constants. This needs to be backported to Python 2.2!
* Comment out a test that was anticipating SF patch 661536 -- but thatGuido van Rossum2003-01-281-6/+6
| | | | isn't checked in yet. :-(
* Verify treatment of unary minus on negative numbers SF bug #660455.Guido van Rossum2003-01-281-0/+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. :)
* Fix SF Bug 564931: compile() traceback must include filename.Thomas Heller2002-07-091-0/+9
|
* Don't munge __debug__ and leave it that way.Jeremy Hylton2001-11-131-0/+2
|
* Fix SF buf #480096: Assign to __debug__ still allowedJeremy Hylton2001-11-091-1/+13
| | | | | | Easy enough to catch assignment in the compiler. The perverse user can still change the value of __debug__, but that may be the least he can do.
* SF patch #455966: Allow leading 0 in float/imag literals.Tim Peters2001-08-301-0/+44
| | | | Consequences for Jython still unknown (but raised on Jython-Dev).
* SF bug [#455775] float parsing discrepancy.Tim Peters2001-08-271-0/+15
| | | | PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...).
* Whitespace normalization.Tim Peters2001-02-211-1/+1
|
* SF patch #103749: implicit tuple + default argJeremy Hylton2001-02-191-3/+33
|
* add test for SyntaxError onJeremy Hylton2001-01-191-1/+7
| | | | | def f(a): global a
* 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.
* added test case for fixed duplicate arguments bug in Python/compile.cPeter Schneider-Kamp2000-07-251-0/+16