#1291: copy test_resource.py from the 2.6 trunk, to fix a test failure.
The 2.6 version also converts to unittest, but it seems to work fine under 2.5.
Ronald Oussoren [Tue, 19 Feb 2008 15:29:40 +0000 (15:29 +0000)]
A quick fix that removes a spurious unittest failure when users
upgrade their python2.5 install and then run Python's test suite.
This is needed because one of the test files for the decimal module
changed it name (see issue 2114) and OSX doesn't feature a full
package manager.
Martin v. Löwis [Thu, 14 Feb 2008 11:26:18 +0000 (11:26 +0000)]
Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
Kurt B. Kaiser [Thu, 14 Feb 2008 04:11:52 +0000 (04:11 +0000)]
Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;
mouse and cursor selection in ACWindow implemented; double Tab inserts current
selection and closes ACW (similar to double-click and Return); scroll wheel now
works in ACW. Added AutoComplete instructions to IDLE Help.
Backport of r53679
Kurt B. Kaiser [Thu, 14 Feb 2008 04:02:10 +0000 (04:02 +0000)]
1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
2. Duplicate some old entries from Python's NEWS to IDLE's NEWS.txt
Backport of r53042
Kurt B. Kaiser [Thu, 14 Feb 2008 03:25:59 +0000 (03:25 +0000)]
Some syntax errors were being caught by tokenize during the tabnanny
check, resulting in obscure error messages. Do the syntax check
first. Bug 1562716, 1562719 Backport of r52083
Lars Gustäbel [Mon, 11 Feb 2008 18:36:07 +0000 (18:36 +0000)]
Backport the nts() function from the trunk. This fixes problems with
the xstar format that puts extra fields inside the space that POSIX
has reserved for the prefix field.
Walter Dörwald [Thu, 7 Feb 2008 19:35:17 +0000 (19:35 +0000)]
Backport LaTeX version of r60649:
Clarify that the output of TextCalendar.formatmonth() and
TextCalendar.formatyear() for custom instances won't be influenced by calls
to the module global setfirstweekday() function. Fixes #2018.
Walter Dörwald [Wed, 6 Feb 2008 14:39:06 +0000 (14:39 +0000)]
Remove month parameter from Calendar.yeardatescalendar(),
Calendar.yeardays2calendar() and Calendar.yeardayscalendar() as the methods
don't have such a parameter. Fixes issue #2017. (2.5 backport of r60618)
backport of r60575 (issue #1750076): Debugger did not step on every iteration of a while statement.
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.
Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.
The lnotab seems to be exactly the same as with python2.4.
Neal Norwitz [Sun, 27 Jan 2008 05:02:56 +0000 (05:02 +0000)]
Backport 60342:
Try to prevent this test from being flaky. We might need a sleep in here
which isn't as bad as it sounds. The close() *should* raise an exception,
so if it didn't we should give more time to sync and really raise it.
Neal Norwitz [Sun, 27 Jan 2008 01:24:44 +0000 (01:24 +0000)]
Backport r58453:
Let the O/S supply a port if none of the default ports can be used.
This should make the tests more robust at the expense of allowing
tests to be sloppier by not requiring them to cleanup after themselves.
(It will legitamitely help when running two test suites simultaneously
or if another process is already using one of the predefined ports.)
Thomas Heller [Thu, 24 Jan 2008 13:08:54 +0000 (13:08 +0000)]
Invert the checks in get_[u]long and get_[u]longlong. The intent was
to not accept float types; the result was that integer-like objects
were not accepted.
Gregory P. Smith [Tue, 22 Jan 2008 01:29:11 +0000 (01:29 +0000)]
Backport of r60190:
- Fix Issue #1703448: A joined thread could show up in the
threading.enumerate() list after the join() for a brief period until
it actually exited.
Georg Brandl [Mon, 21 Jan 2008 18:35:52 +0000 (18:35 +0000)]
Issue #1882: when compiling code from a string, encoding cookies in the
second line of code were not always recognized correctly.
(backport from rev. 60168)