summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again.Neal Norwitz2006-07-121-0/+5
|
* Whitespace normalization.Tim Peters2006-07-101-1/+1
|
* After approval from Anthony, merge the tim-current_framesTim Peters2006-07-101-0/+61
| | | | | | branch into the trunk. This adds a new sys._current_frames() function, which returns a dict mapping thread id to topmost thread stack frame.
* Make it possible to run test_subprocess.py with Python 2.2, which lacks ↵Peter Astrand2006-07-101-3/+6
| | | | test_support.reap_children().
* Fix SF#1516184 and add a test to prevent regression.Phillip J. Eby2006-07-101-0/+10
|
* 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
|
* Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.Neil Schemenauer2006-07-092-1/+12
|
* 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
|
* Restore rev 47014:Neal Norwitz2006-07-074-5/+32
| | | | | | | | | | | | | | | | The hppa ubuntu box sometimes hangs forever in these tests. My guess is that the wait is failing for some reason. Use WNOHANG, so we won't wait until the buildbot kills the test suite. I haven't been able to reproduce the failure, so I'm not sure if this will help or not. Hopefully, this change will cause the test to fail, rather than hang. That will be better since we will get the rest of the test results. It may also help us debug the real problem. *** The reason this originally failed was because there were many zombie children outstanding before rev 47158 cleaned them up. There are still hangs in test_subprocess that need to be addressed, but that will take more work. This should close some holes.
* Test using all CJK encodings for the testcases which don't requireHye-Shik Chang2006-07-061-6/+26
| | | | specific encodings.
* Add a testcase for r47086 which fixed a bug in codec_getstreamcodec().Hye-Shik Chang2006-07-061-1/+9
|
* Revert the __module_name__ changes made in rev 47142. We'll revisit this in ↵Nick Coghlan2006-07-061-13/+5
| | | | Python 2.6
* A couple of examples about how to attack the fact that _PyType_Lookup()Armin Rigo2006-07-062-0/+67
| | | | returns a borrowed ref. Many of the calls are open to attack.
* Fix bug in passing tuples to string.Template. All other values (with workingThomas Wouters2006-07-051-0/+7
| | | | | | | | | | | | | | str() or repr()) would work, just not multi-value tuples. Probably not a backport candidate, since it changes the behaviour of passing a single-element tuple: >>> string.Template("$foo").substitute(dict(foo=(1,))) '(1,)' versus '1'
* Put method-wrappers into trashcan. Fixes #927248.Martin v. Löwis2006-07-031-0/+8
|
* Bug #1417699: Reject locale-specific decimal point in float()Martin v. Löwis2006-07-032-3/+17
| | | | and atof().
* Whitespace normalization.Tim Peters2006-07-031-1/+1
|
* Correct arithmetic in access on Win32. Fixes #1513646.Martin v. Löwis2006-07-021-0/+14
|
* SF bug #1296433 (Expat bug #1515266): Unchecked calls to character dataFred Drake2006-07-012-56/+21
| | | | | | | | handler would cause a segfault. This merges in Expat's lib/xmlparse.c revisions 1.154 and 1.155, which fix this and a closely related problem (the later does not affect Python). Moved the crasher test to the tests for xml.parsers.expat.
* Release all forwarded functions in .close. Fixes #1513223.Martin v. Löwis2006-07-011-2/+17
|
* Added duplicate call to fileConfig() to ensure that it cleans up after ↵Vinay Sajip2006-07-011-0/+2
| | | | itself correctly.
* Whitespace normalization.Tim Peters2006-06-301-4/+4
|
* This should fix the buildbot failure on s/390 which can't connect to gmail.org.Neal Norwitz2006-06-291-6/+9
| | | | | | It makes the error message consistent and always sends to stderr. It would be much better for all the networking tests to hit only python.org.
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-2913-8/+52
| | | | | | | | | | be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
* SF bug #1504333: sgmlib should allow angle brackets in quoted valuesFred Drake2006-06-291-0/+15
| | | | | | | (modified patch by Sam Ruby; changed to use separate REs for start and end tags to reduce matching cost for end tags; extended tests; updated to avoid breaking previous changes to support IPv6 addresses in unquoted attribute values)
* A couple of crashers of the "won't fix" kind.Armin Rigo2006-06-282-0/+26
|
* Make full module name available as __module_name__ even when __name__ is set ↵Nick Coghlan2006-06-281-5/+13
| | | | to something else (like '__main__')
* Whitespace normalization.Tim Peters2006-06-272-3/+3
|
* Attempt to fix build failure on OS X and Debian alpha; the symptom isAndrew M. Kuchling2006-06-261-1/+1
| | | | | | | | | | consistent with os.wait() returning immediately because some other subprocess had previously exited; the test suite then immediately tries to lock the mailbox and gets an error saying it's already locked. To fix this, do a waitpid() so the test suite only continues once the intended child process has exited.
* Windows doesn't have os.fork(). I'll just disable this test for nowAndrew M. Kuchling2006-06-261-0/+2
|
* Add a test for a conflicting lock.Andrew M. Kuchling2006-06-261-0/+22
| | | | | On slow machines, maybe the time intervals (2 sec, 0.5 sec) will be too tight. I'll see how the buildbots like it.
* - SF bug #853506: IP6 address parsing in sgmllibFred Drake2006-06-231-8/+42
| | | | | | | | | | ('[' and ']' were not accepted in unquoted attribute values) - cleaned up tests of character and entity reference decoding so the tests cover the documented relationships among handle_charref, handle_entityref, convert_charref, convert_codepoint, and convert_entityref, without bringing up Unicode issues that sgmllib cannot be involved in
* Make it possible to run test_subprocess.py on Python 2.2, which lacks ↵Peter Astrand2006-06-221-1/+2
| | | | test_support.is_resource_enabled.
* 'warning's was improperly requiring that a command-line Warning category beBrett Cannon2006-06-221-0/+13
| | | | | | | both a subclass of Warning and a subclass of types.ClassType. The latter is no longer true thanks to new-style exceptions. Closes bug #1510580. Thanks to AMK for the test.
* Test for correct compilation of try-except-finally stmt.Georg Brandl2006-06-221-0/+15
| | | | Test for correct lineno on list, tuple, dict literals.
* Fix for an obscure bug introduced by revs 46806 and 46808, with a test.Armin Rigo2006-06-211-0/+12
| | | | | | | | | | | | | | The problem of checking too eagerly for recursive calls is the following: if a RuntimeError is caused by recursion, and if code needs to normalize it immediately (as in the 2nd test), then PyErr_NormalizeException() needs a call to the RuntimeError class to instantiate it, and this hits the recursion limit again... causing PyErr_NormalizeException() to never finish. Moved this particular recursion check to slot_tp_call(), which is not involved in instantiating built-in exceptions. Backport candidate.
* Patch #1509001: expected skips for netbsd3.Georg Brandl2006-06-211-0/+31
|
* Make test_fcntl aware of netbsd3.Georg Brandl2006-06-211-3/+4
|
* At the C level, tuple arguments are passed in directly to the exceptionBrett Cannon2006-06-211-4/+4
| | | | | | constructor, meaning it is treated as *args, not as a single argument. This means using the 'message' attribute won't work (until Py3K comes around), and so one must grab from 'arg' to get the error number.
* Fix typo of exception name.Brett Cannon2006-06-201-1/+1
|
* Raise TestSkipped when the test socket connection is refused.Brett Cannon2006-06-201-0/+7
|
* TestHelp.make_parser(): This was making a permanent change toTim Peters2006-06-191-1/+12
| | | | | | | | | | | | | | os.environ (setting envar COLUMNS), which at least caused test_float_default() to fail if the tests were run more than once. This repairs the test_optparse -R failures Neal reported on python-dev. It also explains some seemingly bizarre test_optparse failures we saw a couple weeks ago on the buildbots, when test_optparse failed due to test_file failing to clean up after itself, and then test_optparse failed in an entirely different way when regrtest's -w option ran test_optparse a second time. It's now obvious that make_parser() permanently changing os.environ was responsible for the second half of that.
* Repair KeyError when running test_threaded_import under -R,Tim Peters2006-06-191-4/+3
| | | | as reported by Neal on python-dev.
* Patch #1506645: add Python wrappers for the curses functionsWalter Dörwald2006-06-191-0/+7
| | | | | is_term_resized, resize_term and resizeterm. This uses three separate configure checks (one for each function).
* Whitespace normalization.Tim Peters2006-06-191-1/+0
|
* Patch #1507676: improve exception messages in abstract.c, object.c and ↵Georg Brandl2006-06-181-1/+1
| | | | typeobject.c.
* Revert 47014 until it is more robustNeal Norwitz2006-06-184-32/+5
|