summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1512814, Fix incorrect lineno's when code at module scopeNeal Norwitz2006-07-101-0/+10
| | | | started after line 256.
* On 64 bit systems, int literals that use less than 64 bits are now intsNeal Norwitz2006-07-091-0/+15
| | | | rather than longs. This also fixes the test for eval(-sys.maxint - 1).
* Fix SF bug 1441486: bad unary minus folding in compiler.Neil Schemenauer2006-07-091-0/+4
|
* Add an additional test for bug #1519018.Georg Brandl2006-07-081-0/+2
|
* Fix SF bug #1519018: 'as' is now validated properly in import statementsNeal Norwitz2006-07-081-0/+4
|
* Forward port MvL's fix in 43227:Neal Norwitz2006-03-231-0/+4
| | | | | Fix crash when a Unicode string containing an encoding declaration is compile()d. Fixes #1115379.
* Fix SF bug #1448804 and ad a test to ensure that all subscript operations ↵Nick Coghlan2006-03-131-0/+72
| | | | continue to be handled correctly
* Fix problem handling EXTENDED_ARGs from SF bug # 1333982Neal Norwitz2005-10-241-0/+23
|
* SF bug #1048870: call arg of lambda not updatingRaymond Hettinger2004-10-241-0/+9
|
* SF patch #1007189, multi-line imports, for instance:Anthony Baxter2004-08-311-0/+41
| | | | | "from blah import (foo, bar baz, bongo)"
* Completed the patch for Bug #215126.Raymond Hettinger2004-08-021-0/+57
| | | | | | | * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests.
* Upgrade None assignment SyntaxWarning to a SyntaxError.Raymond Hettinger2004-07-171-0/+15
|
* - Removed FutureWarnings related to hex/oct literals and conversionsGuido van Rossum2003-11-291-8/+11
| | | | | | | | | | and left shifts. (Thanks to Kalle Svensson for SF patch 849227.) This addresses most of the remaining semantic changes promised by PEP 237, except for repr() of a long, which still shows the trailing 'L'. The PEP appears to promise warnings for operations that changed semantics compared to Python 2.3, but this is not implemented; we've suffered through enough warnings related to hex/oct literals and I think it's best to be silent now.
* 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