summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_frozen.py
Commit message (Collapse)AuthorAgeFilesLines
* Duh. Delete the outdated comment too.Guido van Rossum2007-06-121-7/+0
|
* Seems this test is just fine. It fails because __phello__.spamGuido van Rossum2007-06-121-2/+0
| | | | doesn't exist, but that seems a separate issue.
* Make identifiers str (not str8) objects throughout.Martin v. Löwis2007-06-101-0/+2
| | | | | | | | | | | | | | | | | | | This affects the parser, various object implementations, and all places that put identifiers into C string literals. In testing, a number of crashes occurred as code would fail when the recursion limit was reached (such as the Unicode interning dictionary having key/value pairs where key is not value). To solve these, I added an overflowed flag, which allows for 50 more recursions after the limit was reached and the exception was raised, and a recursion_critical flag, which indicates that recursion absolutely must be allowed, i.e. that a certain call must not cause a stack overflow exception. There are still some places where both str and str8 are accepted as identifiers; these should eventually be removed.
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-3/+3
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Jiwon Seo's PEP 3102 implementation.Guido van Rossum2006-10-271-0/+7
| | | | | See SF#1549670. The compiler package has not yet been updated.
* n the Mac the frozen import that should fail actually succeeds, and we know ↵Jack Jansen2003-01-081-6/+7
| | | | it, so skip the test in stead of confusing the end user.
* [SF bug 631713] use the import exeption message in the TestFailedFinn Bock2002-11-011-3/+3
| | | | exception.
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Fix the frozen bytecode for __hello__ (betcha didn't know that existedGuido van Rossum2001-10-181-0/+26
:-). Add a test that prevents the __hello__ bytecode from going stale unnoticed again. The test also tests the loophole noted in SF bug #404545. This test will fail right now; I'll check in the fix in a minute.