Georg Brandl
fa6179701c
Remove duplicate crasher.
2007-10-21 10:01:56 +00:00
Armin Rigo
1486182451
Add a crasher for the long-standing issue with closing a file
...
while another thread uses it.
2007-10-21 09:14:15 +00:00
Facundo Batista
9b5e23148b
The constructor from tuple was way too permissive: it allowed bad
...
coefficient numbers, floats in the sign, and other details that
generated directly the wrong number in the best case, or triggered
misfunctionality in the alorithms.
Test cases added for these issues. Thanks Mark Dickinson.
2007-10-19 19:25:57 +00:00
Gregory P. Smith
87fc9ad966
squelch the warning that this test is supposed to trigger.
2007-10-19 07:31:20 +00:00
Gregory P. Smith
3ef21cb7c6
A cleaner fix than the one committed last night. Generate random rowids that
...
do not contain null bytes.
2007-10-18 16:32:02 +00:00
Gregory P. Smith
f8a2a0b5a9
Fix a weird bug in dbtables: if it chose a random rowid string that contained
...
NULL bytes it would cause the database all sorts of problems in the future
leading to very strange random failures and corrupt dbtables.bsdTableDb dbs.
2007-10-18 08:34:20 +00:00
Gregory P. Smith
afed3a4552
cleanup test_dbtables to use mkdtemp. cleanup dbtables to pass txn as a
...
keyword argument whenever possible to avoid bugs and confusion. (dbtables.py
line 447 self.db.get using txn as a non-keyword was an actual bug due to this)
2007-10-18 07:56:54 +00:00
Facundo Batista
7066590736
Issue #1580738 . When HTTPConnection reads the whole stream with read(),
...
it closes itself. When the stream is read in several calls to read(n),
it should behave in the same way if HTTPConnection knows where the end
of the stream is (through self.length). Added a test case for this
behaviour.
2007-10-18 03:16:03 +00:00
Armin Rigo
a1e42e11d5
Fix the overflow checking of list_repeat.
...
Introduce overflow checking into list_inplace_repeat.
Backport candidate, possibly.
2007-10-17 18:46:37 +00:00
Raymond Hettinger
abfd8dff3b
More docs, error messages, and tests
2007-10-16 21:28:32 +00:00
Raymond Hettinger
050afbf214
Improve error messages
2007-10-16 19:18:30 +00:00
Armin Rigo
ec5601945a
test_bigbits was not testing what it seemed to.
2007-10-15 07:48:35 +00:00
Neal Norwitz
d29f1d2241
Use unittest for assertions
2007-10-14 18:40:37 +00:00
Neal Norwitz
3884690d69
Don't raise a string exception, they don't work anymore.
2007-10-14 18:30:21 +00:00
Neal Norwitz
880605aafd
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.)
Also simplifies (slightLy) the exception handling elsewhere.
2007-10-14 00:18:40 +00:00
Gregory P. Smith
5d743fd187
Fix an uncollectable reference leak in bsddb.db.DBShelf.append
2007-10-13 23:02:05 +00:00
Gregory P. Smith
d40f126fff
Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.append
...
was useless due to inverted logic. Also adds a test case for RECNO dbs
to test_dbshelve.
2007-10-12 18:44:06 +00:00
Raymond Hettinger
3a0de08d54
Fix test of count.__repr__() to ignore the 'L' if the count is a long
2007-10-12 17:53:11 +00:00
Thomas Heller
7fee6dd2a3
On OS X, use os.uname() instead of gestalt.sysv(...) to get the
...
operating system version. This allows to use ctypes when Python
was configured with --disable-toolbox-glue.
2007-10-11 19:51:32 +00:00
Kurt B. Kaiser
631fee6235
show paste if > 80 columns. Patch 1659326 Tal Einat.
2007-10-10 01:06:47 +00:00
Kurt B. Kaiser
cca976b11c
Allow cursor color change w/o restart. Patch 1725576 Tal Einat.
2007-10-10 00:55:40 +00:00
Raymond Hettinger
68995867d5
Accept Jim Jewett's api suggestion to use None instead of -1 to indicate unbounded deques.
2007-10-10 00:26:46 +00:00
Kurt B. Kaiser
c8f65e69da
Allow interrupt only when executing user code in subprocess
...
Patch 1225 Tal Einat modified from IDLE-Spoon.
2007-10-09 19:31:30 +00:00
Gregory P. Smith
b7de61bf49
Use the highest cPickle protocol in bsddb.dbshelve. This comes from
...
sourceforge pybsddb patch 1551443 by w_barnes.
2007-10-09 07:19:11 +00:00
Gregory P. Smith
10bed54ae2
Fix a double free when positioning a database cursor to a non-existant
...
string key (and probably a few other situations with string keys).
This was reported with a patch as pybsddb sourceforge bug 1708868 by
jjjhhhlll at gmail.
2007-10-09 06:50:43 +00:00
Raymond Hettinger
163f622c03
Make the error messages more specific
2007-10-09 01:36:23 +00:00
Raymond Hettinger
a48a29947a
Eliminate camelcase function name
2007-10-08 21:26:58 +00:00
Raymond Hettinger
0e1d606116
Better variable names
2007-10-08 10:11:51 +00:00
Raymond Hettinger
2115bbc4da
Add comments to NamedTuple code.
...
Let the field spec be either a string or a non-string sequence (suggested by Martin Blais with use cases).
Improve the error message in the case of a SyntaxError (caused by a duplicate field name).
2007-10-08 09:14:28 +00:00
Georg Brandl
a970c22166
Update docstring of sched, also remove an unused assignment.
2007-10-08 08:06:05 +00:00
Neal Norwitz
92abad24d6
Ensure that this test will pass even if another test left an unwritable TESTFN.
...
Also use the safe unlink in test_support instead of rolling our own here.
2007-10-06 19:16:28 +00:00
Gregory P. Smith
71e4fb5877
Use the host the author likely meant in the first place. pop.gmail.com is
...
reliable. gmail.org is someones personal domain.
2007-10-06 15:47:37 +00:00
Raymond Hettinger
a7fc4b13e0
Add __asdict__() to NamedTuple and refine the docs.
...
Add maxlen support to deque() and fixup docs.
Partially fix __reduce__(). The None as a third arg was no longer supported.
Still needs work on __reduce__() to handle recursive inputs.
2007-10-05 02:47:07 +00:00
Kurt B. Kaiser
e3fde8f8cd
configDialog cleanup. Patch 1730217 Tal Einat.
2007-10-04 03:11:12 +00:00
Kurt B. Kaiser
d5f4910afd
textView cleanup. Patch 1718043 Tal Einat.
...
M idlelib/EditorWindow.py
M idlelib/aboutDialog.py
M idlelib/textView.py
M idlelib/NEWS.txt
2007-10-04 02:53:07 +00:00
Kurt B. Kaiser
0b634efcbc
Clean up EditorWindow close.
2007-10-04 02:09:17 +00:00
Kurt B. Kaiser
85897c9b38
Remove unused theme that was causing a fault in p3k.
2007-10-04 02:07:50 +00:00
Kurt B. Kaiser
67bd62fd6c
Assume that the user knows when he wants to end the line; don't insert
...
something he didn't select or complete.
2007-10-04 01:49:54 +00:00
Raymond Hettinger
50e90e265f
itertools.count() no longer limited to sys.maxint.
2007-10-04 00:20:27 +00:00
Facundo Batista
be6c7ba72a
Added a class to store the digits of log(10), so that they can be made
...
available when necessary without recomputing. Thanks Mark Dickinson
2007-10-02 18:21:18 +00:00
Facundo Batista
1a191df14d
Made the various is_* operations return booleans. This was discussed
...
with Cawlishaw by mail, and he basically confirmed that to these is_*
operations, there's no need to return Decimal(0) and Decimal(1) if
the language supports the False and True booleans.
Also added a few tests for the these functions in extra.decTest, since
they are mostly untested (apart from the doctests).
Thanks Mark Dickinson
2007-10-02 17:01:24 +00:00
Vinay Sajip
c537881caa
Change to LogRecord.__init__() to fix #1206 . Note that archaic use of type(x) == types.DictType is because of keeping 1.5.2 compatibility. While this is much less relevant these days, there probably needs to be a separate commit for removing all archaic constructs at the same time.
2007-09-27 07:35:10 +00:00
Vinay Sajip
66ba9ffcb1
Minor date change.
2007-09-27 06:56:13 +00:00
Vinay Sajip
90d93615d6
Change to basicConfig() to fix #1021 .
2007-09-27 05:38:51 +00:00
Vinay Sajip
4df367c08d
Change to flush and close logic to fix #1760556 .
2007-09-27 05:34:45 +00:00
Georg Brandl
9b915673b7
#1177 : accept 2xx responses for https too, not only http.
2007-09-24 18:08:24 +00:00
Guido van Rossum
ad8fb0d47c
Patch # 188 by Philip Jenvey.
...
Make tell() mark CRLF as a newline.
With unit test.
2007-09-22 20:18:03 +00:00
Georg Brandl
4a21268a74
Patch #1181 : add os.environ.clear() method.
2007-09-20 17:57:59 +00:00
Georg Brandl
aff85e2d26
Patch #1541463 : optimize performance of cgi.FieldStorage operations.
2007-09-20 16:06:07 +00:00
Facundo Batista
8c20244069
Issue #1772851 . Optimization of __hash__ to behave better for big big
...
numbers.
2007-09-19 17:53:25 +00:00