Commit graph

11194 commits

Author SHA1 Message Date
Anthony Baxter
d113680720 Preparing for 2.5b1. 2006-06-19 12:04:15 +00:00
Tim Peters
e7d7caa17a TestHelp.make_parser(): This was making a permanent change to
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.
2006-06-19 09:09:44 +00:00
Thomas Heller
c314ac5492 Next try to fix the OpenBSD buildbot tests:
Use ctypes.util.find_library to locate the C runtime library
on platforms where is returns useful results.
2006-06-19 08:32:46 +00:00
Tim Peters
5c298438b0 Repair KeyError when running test_threaded_import under -R,
as reported by Neal on python-dev.
2006-06-19 08:14:28 +00:00
Walter Dörwald
4994d9546c Patch #1506645: add Python wrappers for the curses functions
is_term_resized, resize_term and resizeterm. This uses three
separate configure checks (one for each function).
2006-06-19 08:07:50 +00:00
Tim Peters
43bc3788c0 Whitespace normalization. 2006-06-19 07:45:16 +00:00
Thomas Heller
0b465702e6 Try to repair the failing test on the OpenBSD buildbot. Trial and error... 2006-06-19 07:07:49 +00:00
Georg Brandl
ccff785258 Patch #1507676: improve exception messages in abstract.c, object.c and typeobject.c. 2006-06-18 22:17:29 +00:00
Neal Norwitz
0f51cf6e04 Revert 47014 until it is more robust 2006-06-18 20:10:24 +00:00
Neal Norwitz
10b835c401 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.
2006-06-18 19:37:40 +00:00
Neal Norwitz
9602cc2aa4 Prevent spurious leaks when running regrtest.py -R. There may be more
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.
2006-06-18 19:35:01 +00:00
Neal Norwitz
210262c0ec Fix typo in docstring 2006-06-17 22:37:45 +00:00
Martin v. Löwis
6fb20aa92c Patch #815924: Restore ability to pass type= and icon= 2006-06-17 19:03:26 +00:00
Martin v. Löwis
3798da0f92 Patch #812986: Update the canvas even if not tracing. 2006-06-17 18:44:27 +00:00
Martin v. Löwis
92733be85e Patch #1494750: Destroy master after deleting children. 2006-06-17 09:25:15 +00:00
Martin v. Löwis
5ecad9ca13 Patch #1096231: Add default argument to wm_iconbitmap. 2006-06-17 09:20:41 +00:00
Martin v. Löwis
337487e3b8 Patch #763580: Add name and value arguments to
Tkinter variable classes.
2006-06-17 09:15:14 +00:00
Fred Drake
541660553d fix change that broke the htmllib tests 2006-06-17 01:07:54 +00:00
Fred Drake
fab461a4b5 SF patch 1504676: Make sgmllib char and entity references pluggable
(implementation/tests contributed by Sam Ruby)
2006-06-16 23:45:06 +00:00
Neal Norwitz
13a7bef73d Add missing period in comment. 2006-06-16 04:31:28 +00:00
Neal Norwitz
946aea2cd5 Param name is dir, not directory. Update docstring. Backport candidate 2006-06-16 04:31:06 +00:00
Neal Norwitz
217046fb9f Disable this test until we can determine what to do about it 2006-06-16 04:30:34 +00:00
Tim Peters
da4b84a07a Oops -- I introduced an off-by-6436159488 error. 2006-06-15 18:38:19 +00:00
Tim Peters
a608bb228c Whitespace normalization. 2006-06-15 18:06:29 +00:00
Tim Peters
84b0f581ef Try to reduce the extreme peak memory and disk-space use
of this test.  It probably still requires more disk space
than most buildbots have, and in any case is still so
intrusive that if we don't find another way to test this I'm
taking my buildbot offline permanently ;-)
2006-06-15 18:04:40 +00:00
Neal Norwitz
bda1418e65 Print some more info to get an idea of how much longer the test will last 2006-06-15 10:24:49 +00:00
Neal Norwitz
643ad19251 Steal the trick from test_compiler to print out a slow msg.
This will hopefully get the buildbots to pass.  Not sure this
test will be feasible or even work.  But everything is red now,
so it can't get much worse.
2006-06-15 09:57:03 +00:00
Gregory P. Smith
506f7b559a - bsddb: multithreaded DB access using the simple bsddb module interface
now works reliably.  It has been updated to use automatic BerkeleyDB
  deadlock detection and the bsddb.dbutils.DeadlockWrap wrapper to retry
  database calls that would previously deadlock. [SF python bug #775414]
2006-06-15 08:52:32 +00:00
Neal Norwitz
c21e0566b2 Re-revert this change. Install the version check and don't run the test
until Gerhard has time to fully debug the issue.  This affects versions
before 3.2.1 (possibly only versions earlier than 3.1.3).

Based on discussion on python-checkins.
2006-06-15 08:16:44 +00:00
Ronald Oussoren
143cefb846 Patch #1446489 (zipfile: support for ZIP64) 2006-06-15 08:14:18 +00:00
Martin v. Löwis
0eac11826a Make import/lookup of mbcs fail on non-Windows systems. 2006-06-15 06:45:05 +00:00
Neal Norwitz
de7f502879 Try to narrow window of failure on slow/busy boxes (ppc64 buildbot) 2006-06-15 05:55:49 +00:00
Neal Norwitz
fe7d0c3bc6 Speculative checkin (requires approval of Gerhard Haering)
This backs out the test changes in 46962 which prevented crashes
by not running the tests via a version check.  All the version checks
added in that rev were removed from the tests.

Code was added to the error handler in connection.c that seems
to work with older versions of sqlite including 3.1.3.
2006-06-15 04:54:29 +00:00
Tim Peters
5d538b603f Whitespace normalization. 2006-06-14 22:38:13 +00:00
Gerhard Häring
b2e8816403 - Added version checks in C code to make sure we don't trigger bugs in older
SQLite versions.
- Added version checks in test suite so that we don't execute tests that we
  know will fail with older (buggy) SQLite versions.

Now, all tests should run against all SQLite versions from 3.0.8 until 3.3.6
(latest one now). The sqlite3 module can be built against all these SQLite
versions and the sqlite3 module does its best to not trigger bugs in SQLite,
but using SQLite 3.3.3 or later is recommended.
2006-06-14 22:28:37 +00:00
Thomas Heller
4180e12d26 Add an __all__ list, since this module does 'from ctypes import *'. 2006-06-14 09:20:11 +00:00
Georg Brandl
83cc0d0add Bug #1117556: SimpleHTTPServer now tries to find and use the system's
mime.types file for determining MIME types.
2006-06-14 08:50:03 +00:00
Georg Brandl
0540be96f3 Bug #1202018: add some common mime.types locations. 2006-06-14 08:42:11 +00:00
Thomas Heller
866a5d89b2 Fix docstring. 2006-06-14 06:18:15 +00:00
Georg Brandl
2605ca8773 Bug #1339007: Shelf objects now don't raise an exception in their
__del__ method when initialization failed.
2006-06-14 06:08:31 +00:00
Martin v. Löwis
d825143be1 Patch #1455898: Incremental mode for "mbcs" codec. 2006-06-14 05:21:04 +00:00
Fred Drake
6ce9fe880b explain an XXX in more detail 2006-06-14 05:15:51 +00:00
Fred Drake
a16393efb7 add tests for two cases that are handled correctly in the current code,
but that SF patch 1504676 as written mis-handles
2006-06-14 05:04:47 +00:00
Fred Drake
72c9eff59e - make some disabled tests run what they intend when enabled
- remove some over-zealous triple-quoting
2006-06-14 04:25:02 +00:00
Tim Peters
16ec4bb0cb Whitespace normalization. 2006-06-14 04:15:27 +00:00
Tim Peters
61bdd39b02 Repaired typo in new comment. 2006-06-14 04:13:00 +00:00
Tim Peters
43898b4f64 SequenceMatcher.get_matching_blocks(): This now guarantees that
adjacent triples in the result list describe non-adjacent matching
blocks.  That's _nice_ to have, and Guido said he wanted it.

Not a bugfix candidate:  Guido or not ;-), this changes visible
endcase semantics (note that some tests had to change), and
nothing about this was documented before.  Since it was working
as designed, and behavior was consistent with the docs, it wasn't
"a bug".
2006-06-14 04:09:25 +00:00
Brett Cannon
5dc3e3f17a Missed test for rev. 46933; infinite recursion from __coerce__() returning its arguments reversed. 2006-06-13 22:26:13 +00:00
Gerhard Häring
1541ef08af Merged changes from external pysqlite 2.3.0 release. Documentation updates will
follow in a few hours at the latest. Then we should be ready for beta1.
2006-06-13 22:24:47 +00:00
Brett Cannon
ea3912b0da If a classic class defined a __coerce__() method that just returned its two
arguments in reverse, the interpreter would infinitely recourse trying to get a
coercion that worked.  So put in a recursion check after a coercion is made and
the next call to attempt to use the coerced values.

Fixes bug #992017 and closes crashers/coerce.py .
2006-06-13 21:46:41 +00:00