summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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-292-9/+25
| | | | | | | (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)
* Fix end_fill().Georg Brandl2006-06-281-1/+1
|
* 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-282-18/+34
| | | | to something else (like '__main__')
* According to the man pages on Gentoo Linux and Tru64, EACCES or EAGAINNeal Norwitz2006-06-281-1/+1
| | | | | can be returned if fcntl (lockf) fails. This fixes the test failure on Tru64 by checking for either error rather than just EAGAIN.
* Whitespace normalization.Tim Peters2006-06-273-4/+4
|
* MacOSX: fix rather dumb buglet that made it impossible to create extensions onRonald Oussoren2006-06-272-2/+2
| | | | OSX 10.3 when using a binary distribution build on 10.4.
* Removed buggy exception handling in doRollover of rotating file handlers. ↵Vinay Sajip2006-06-271-12/+2
| | | | Exceptions now propagate to caller.
* 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.
* [Bug #1512163] Use one set of locking methods, lockf();Andrew M. Kuchling2006-06-261-12/+2
| | | | | | | | | remove the flock() calls. On FreeBSD, the two methods lockf() and flock() end up using the same mechanism and the second one fails. A Linux man page claims that the two methods are orthogonal (so locks acquired one way don't interact with locks acquired the other way) but that clearly must be false.
* [Bug #1512163] Fix typo.Andrew M. Kuchling2006-06-261-1/+1
| | | | | This change will probably break tests on FreeBSD buildbots, but I'll check in a fix for that next.
* Workaround for bug #1512124Ronald Oussoren2006-06-251-1/+8
| | | | | | Without this patch IDLE will get unresponsive when you open the debugger window on OSX. This is both using the system Tcl/Tk on Tiger as the latest universal download from tk-components.sf.net.
* - SF bug #853506: IP6 address parsing in sgmllibFred Drake2006-06-232-11/+45
| | | | | | | | | | ('[' 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
* Applied patch #1506758: Prevent MemoryErrors with large MAXFD.Peter Astrand2006-06-222-2/+2
|
* 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-222-2/+14
| | | | | | | 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.
* Set lineno correctly on list, tuple and dict literals.Georg Brandl2006-06-221-5/+5
|
* 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.
* Removed call to enable_callback_tracebacks that slipped in by accident.Gerhard Häring2006-06-211-1/+0
|
* Patch #1509001: expected skips for netbsd3.Georg Brandl2006-06-211-0/+31
|
* Make test_fcntl aware of netbsd3.Georg Brandl2006-06-211-3/+4
|
* fix [ 1509132 ] compiler module builds incorrect AST for TryExceptFinallyGeorg Brandl2006-06-211-18/+23
|
* 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
|
* Remove Python 2.3 compatibility comment.Ka-Ping Yee2006-06-191-2/+1
|
* Preparing for 2.5b1.Anthony Baxter2006-06-192-1/+6
|
* 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.
* Next try to fix the OpenBSD buildbot tests:Thomas Heller2006-06-191-9/+1
| | | | | Use ctypes.util.find_library to locate the C runtime library on platforms where is returns useful results.
* 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-192-9/+8
|
* Try to repair the failing test on the OpenBSD buildbot. Trial and error...Thomas Heller2006-06-191-1/+1
|
* 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
|
* The hppa ubuntu box sometimes hangs forever in these tests. My guessNeal Norwitz2006-06-184-5/+32
| | | | | | | | | | 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.
* Prevent spurious leaks when running regrtest.py -R. There may be moreNeal Norwitz2006-06-183-1/+29
| | | | | | | | issues that crop up from time to time, but this change seems to have been pretty stable (no spurious warnings) for about a week. Other modules which use threads may require similar use of threading_setup/threading_cleanup from test_support.
* Fix typo in docstringNeal Norwitz2006-06-171-1/+1
|
* Patch #815924: Restore ability to pass type= and icon=Martin v. Löwis2006-06-171-3/+4
|
* Patch #812986: Update the canvas even if not tracing.Martin v. Löwis2006-06-171-0/+1
|
* Patch #1494750: Destroy master after deleting children.Martin v. Löwis2006-06-171-1/+1
|
* Patch #1096231: Add default argument to wm_iconbitmap.Martin v. Löwis2006-06-171-3/+12
|
* Patch #763580: Add name and value arguments toMartin v. Löwis2006-06-171-19/+63
| | | | Tkinter variable classes.
* fix change that broke the htmllib testsFred Drake2006-06-171-2/+2
|
* SF patch 1504676: Make sgmllib char and entity references pluggableFred Drake2006-06-162-37/+71
| | | | (implementation/tests contributed by Sam Ruby)
* Add missing period in comment.Neal Norwitz2006-06-161-1/+1
|