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
Thomas Wouters
b3e6e8c895
Fix obvious typo in threaded test.
2007-09-19 17:27:29 +00:00
Facundo Batista
d544df7ddd
Issue #1772851 . Alters long.__hash__ from being *almost* completely
...
predictable to being completely predictable. The value of hash(n)
is unchanged for any n that's small enough to be representable as an
int, and also unchanged for the vast majority of long integers n of
reasonable size.
2007-09-19 15:10:06 +00:00
Sean Reifscheider
a1afbf617d
issue1177: Ported Facundo's from urllib2 to urllib, accepting 2xx responses.
2007-09-19 07:52:56 +00:00
Facundo Batista
cce8df2f67
Speed up of the various division operations (remainder, divide,
...
divideint and divmod). Thanks Mark Dickinson.
2007-09-18 16:53:18 +00:00
Raymond Hettinger
2b03d45bb9
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
2007-09-18 03:33:19 +00:00
Sean Reifscheider
f09597c1fd
issue1082: Fixing platform and system for Vista.
2007-09-17 20:53:21 +00:00
Facundo Batista
6c398da0e7
The methods always return Decimal classes, even if they're
...
executed through a subclass (thanks Mark Dickinson).
Added a bit of testing for this.
2007-09-17 17:30:13 +00:00
Raymond Hettinger
d36a60e1e3
Sync-up named tuples with the latest version of the ASPN recipe.
...
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
2007-09-17 00:55:00 +00:00
Bill Janssen
bf10c47389
use binary mode when reading files for testAsyncore to make Windows happy
2007-09-16 23:16:46 +00:00
Bill Janssen
296a59d3be
Add support for asyncore server-side SSL support. This requires
...
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/ , instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
2007-09-16 22:06:00 +00:00
Thomas Heller
a7f49f733b
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
...
Fixes issue #1777530 ; will backport to release25-maint.
2007-09-14 19:40:35 +00:00
Facundo Batista
bd2fe839db
Put the parameter watchexp back in (changed watchexp from an int
...
to a bool). Also second argument to watchexp is now converted
to Decimal, just as with all the other two-argument operations.
Thanks Mark Dickinson.
2007-09-13 18:42:09 +00:00
Facundo Batista
353750c405
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
...
fully updated to the latests Decimal Specification (v1.66) and the
latests test cases (v2.56).
Thanks to Mark Dickinson for all his help during this process.
2007-09-13 18:13:15 +00:00
Georg Brandl
aef205d1a8
#1120 : put explicit version in the shebang lines of pydoc, idle
...
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
2007-09-12 19:29:28 +00:00
Georg Brandl
8fd3ecf928
Bug #1153 : repr.repr() now doesn't require set and dictionary items
...
to be orderable to properly represent them.
2007-09-12 19:00:07 +00:00
Bill Janssen
c28d5fb456
root certificate for https://svn.python.org/ , used in test_ssl
2007-09-12 18:52:05 +00:00
Brett Cannon
4c20bc40d7
Generators had their throw() method allowing string exceptions. That's a
...
no-no.
Fixes issue #1147 . Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
2007-09-11 21:02:28 +00:00
Thomas Heller
0b7120258a
Disable some tests that fail on the 'ppc Debian unstable' buildbot to
...
find out if they cause the segfault on the 'alpha Debian' machine.
2007-09-11 19:17:48 +00:00
Nick Coghlan
1df42b118c
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
2007-09-11 14:01:18 +00:00
Bill Janssen
e3f1d7d059
Make sure test_ssl doesn't reference the ssl module in a
...
context where it can't be imported.
2007-09-11 01:09:19 +00:00
Bill Janssen
119c7a623a
A better way of finding an open port to test with.
2007-09-10 23:41:24 +00:00
Guido van Rossum
b55911378f
Patch # 1026 by Benjamin Aranguren (with Alex Martelli):
...
Backport abc.py and isinstance/issubclass overloading to 2.6.
I had to backport test_typechecks.py myself, and make one small change
to abc.py to avoid duplicate work when x.__class__ and type(x) are the
same.
2007-09-10 22:36:02 +00:00
Guido van Rossum
1ff91d95a2
Patch # 1140 (my code, approved by Effbot).
...
Make sure the type of the return value of re.sub(x, y, z) is the type
of y+x (i.e. unicode if either is unicode, str if they are both str)
even if there are no substitutions or if x==z (which triggered various
special cases in join_list()).
Could be backported to 2.5; no need to port to 3.0.
2007-09-10 22:02:25 +00:00
Bill Janssen
98d19dafd9
More work on SSL support.
...
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
2007-09-10 21:51:02 +00:00
Brett Cannon
a0c05512ec
Fix a possible segfault from recursing too deep to get the repr of a list.
...
Closes issue #1096 .
2007-09-10 21:38:27 +00:00
Martin v. Löwis
0a04819a13
tr a-z A-Z does not work on Solaris (would require
...
/usr/xpg4/bin/tr); make the character ranges explicit.
2007-09-10 06:18:32 +00:00
Gregory P. Smith
e9fef694b4
Change socket.error to inherit from IOError rather than being a stand
...
alone class. This addresses the primary concern in
http://bugs.python.org/issue1706815
python-dev discussion here:
http://mail.python.org/pipermail/python-dev/2007-July/073749.html
I chose IOError rather than EnvironmentError as the base class since
socket objects are often used as transparent duck typed file objects
in code already prepared to deal with IOError exceptions.
also a minor fix:
urllib2 - fix a couple places where IOError was raised rather than URLError.
for better or worse, URLError already inherits from IOError so
this won't break any existing code.
test_urllib2net - replace bad ftp urls.
2007-09-09 23:36:46 +00:00
Gregory P. Smith
f80578548d
email address update
2007-09-09 20:25:00 +00:00
Skip Montanaro
0539313b09
be explicit about the actual location of the missing file
2007-09-08 00:34:17 +00:00
Thomas Heller
2e638c3a8a
Backport from py3k branch:
...
Add a workaround for a strange bug on win64, when _ctypes is compiled
with the SDK compiler. This should fix the failing
Lib\ctypes\test\test_as_parameter.py test.
2007-09-07 09:33:24 +00:00
Thomas Heller
2825b2ea44
Add a 'c_longdouble' type to the ctypes module.
2007-09-07 06:32:17 +00:00
Brett Cannon
1e534b5425
Fix a crasher where Python code managed to infinitely recurse in C code without
...
ever going back out to Python code in PyObject_Call(). Required introducing a
static RuntimeError instance so that normalizing an exception there is no
reliance on a recursive call that would put the exception system over the
recursion check itself.
2007-09-07 04:18:30 +00:00
Brett Cannon
68a6da99e6
Make uuid1 and uuid4 tests conditional on whether ctypes can be imported;
...
implementation of either function depends on ctypes but uuid as a whole does
not.
2007-09-07 03:17:50 +00:00
Gregory P. Smith
161586c804
Apply the fix from Issue1112 to make this test more robust and keep
...
windows happy.
2007-09-06 22:59:59 +00:00
Armin Rigo
337841dac7
PyDict_GetItem() returns a borrowed reference.
...
This attack is against ceval.c:IMPORT_NAME, which calls an
object (__builtin__.__import__) without holding a reference to it.
2007-09-06 09:30:38 +00:00
Armin Rigo
362bb51503
PyDict_GetItem() returns a borrowed reference.
...
There are probably a number of places that are open to attacks
such as the following one, in bltinmodule.c:min_max().
2007-09-05 07:51:21 +00:00
Bill Janssen
ffe576dc78
SSL certificate distinguished names should be represented by tuples
2007-09-05 00:46:27 +00:00
Martin v. Löwis
a5136196bc
Patch #1031213 : Decode source line in SyntaxErrors back to its original
...
source encoding. Will backport to 2.5.
2007-09-04 14:19:28 +00:00
Georg Brandl
4cdceac760
Fix #883466 : don't allow Unicode as arguments to quopri and uu codecs.
2007-09-03 07:16:46 +00:00
Bill Janssen
470dcd2611
remove use of non-existent SSLFakeSocket in apparently untested code
2007-08-31 19:03:31 +00:00
Bill Janssen
910fa59595
remove mentions of socket.ssl in comments
2007-08-31 19:02:46 +00:00
Bill Janssen
c459264f5b
deprecate use of FakeSocket
2007-08-31 19:02:23 +00:00
Thomas Wouters
628e3bb808
One more fix to consider missing SSL support.
2007-08-30 22:35:31 +00:00
Thomas Wouters
a6900e8d72
Don't lie in __all__ attributes when SSL is not available: only add the SSL
...
classes when they are actually created.
2007-08-30 21:54:39 +00:00
Thomas Wouters
dcb3c382ac
Somewhat-preliminary slice-object and extended slicing support for ctypes.
...
The exact behaviour of omitted and negative indices for the Pointer type may
need a closer look (especially as it's subtly different from simple slices)
but there's time yet before 2.6, and not enough before 3.0a1 :-)
2007-08-30 21:01:17 +00:00
Martin v. Löwis
7dcb83cdc5
Bug #1709599 : Run test_1565150 only if the file system is NTFS.
2007-08-30 19:04:09 +00:00
Bill Janssen
24bccf2e32
Added docstrings to methods and functions.
2007-08-30 17:07:28 +00:00
Georg Brandl
0226d85737
* Skip test_pipes on non-POSIX.
...
* Don't raise TestSkipped within a test function.
2007-08-30 12:32:23 +00:00
Georg Brandl
27d9ee32ab
Patch #1680959 : add test suite for pipes module.
2007-08-30 10:38:56 +00:00
Bill Janssen
426ea0a864
This contains a number of things:
...
1) Improve the documentation of the SSL module, with a fuller
explanation of certificate usage, another reference, proper
formatting of this and that.
2) Fix Windows bug in ssl.py, and general bug in sslsocket.close().
Remove some unused code from ssl.py. Allow accept() to be called on
sslsocket sockets.
3) Use try-except-else in import of ssl in socket.py. Deprecate use of
socket.ssl().
4) Remove use of socket.ssl() in every library module, except for
test_socket_ssl.py and test_ssl.py.
2007-08-29 22:35:05 +00:00
Facundo Batista
492e5920bc
Ignore test failures caused by 'resource temporarily unavailable'
...
exceptions raised during FailingServerTestCase tests.
[GSoC - Alan McIntyre]
2007-08-29 10:28:28 +00:00
Walter Dörwald
6d20b705dd
Fix test output.
2007-08-28 23:35:33 +00:00
Skip Montanaro
1a41313684
fixes 813986
2007-08-28 23:22:52 +00:00
Georg Brandl
bf138333ce
Add a crasher for the thread-unsafety of file objects.
2007-08-28 18:54:44 +00:00
Walter Dörwald
f0d1c1f3ec
Fix title endtag in HTMLCalender.formatyearpage(). Fix documentation for
...
HTMLCalender.formatyearpage() (there's no themonth parameter).
This fixes issue1046.
2007-08-28 16:38:26 +00:00
Thomas Wouters
3ccec68a05
Improve extended slicing support in builtin types and classes. Specifically:
...
- Specialcase extended slices that amount to a shallow copy the same way as
is done for simple slices, in the tuple, string and unicode case.
- Specialcase step-1 extended slices to optimize the common case for all
involved types.
- For lists, allow extended slice assignment of differing lengths as long
as the step is 1. (Previously, 'l[:2:1] = []' failed even though
'l[:2] = []' and 'l[:2:None] = []' do not.)
- Implement extended slicing for buffer, array, structseq, mmap and
UserString.UserString.
- Implement slice-object support (but not non-step-1 slice assignment) for
UserString.MutableString.
- Add tests for all new functionality.
2007-08-28 15:28:19 +00:00
Lars Gustäbel
0f4a14b56f
TarFile.__init__() no longer fails if no name argument is passed and
...
the fileobj argument has no usable name attribute (e.g. StringIO).
(will backport to 2.5)
2007-08-28 12:31:09 +00:00
Guido van Rossum
d51b579c51
Patch # 1739906 by Christian Heimes -- add reduce to functools (importing
...
it from __builtin__).
2007-08-27 20:51:00 +00:00
Guido van Rossum
ba8c5653cc
> Regardless, building a fixed test certificate and checking it in sounds like
...
> the better option. Then the openssl command in the test code can be turned
> into a comment describing how the test data was pregenerated.
Here's a patch that does that.
Bill
2007-08-27 17:19:42 +00:00
Facundo Batista
f91ad6a5da
Ignore test failures caused by 'resource temporarily unavailable'
...
exceptions raised in the test server thread, since SimpleXMLRPCServer
does not gracefully handle them. Changed number of requests handled
by tests server thread to one (was 2) because no tests require more
than one request. [GSoC - Alan McIntyre]
2007-08-27 01:15:34 +00:00
Neal Norwitz
9eb9b10751
If we can't create a certificate, print a warning, but don't fail the test.
...
Modified patch from what Bill Janssen sent on python-3000.
2007-08-27 01:15:33 +00:00
Neal Norwitz
3e533c2290
Make a utility function for handling (printing) an error
2007-08-27 01:03:18 +00:00
Neal Norwitz
f6f525b7c9
Stop using string.join (from the module) to ease upgrade to py3k
2007-08-27 00:58:33 +00:00
Neal Norwitz
d6a51e64d7
Another patch from Bill Janssen that:
...
1) Fixes the bug that two class names are initial-lower-case.
2) Replaces the poll waiting for the server to become ready with
a threading.Event signal.
2007-08-26 22:20:03 +00:00
Neal Norwitz
1b2f62d139
Catch IOError for when the device file doesn't exist or the user doesn't have
...
permission to write to the device.
2007-08-26 22:16:23 +00:00
Neal Norwitz
15d4e56c40
Get the test passing by commenting out some writes (should they be removed?)
2007-08-26 21:40:16 +00:00
Guido van Rossum
e472933e27
Bill Janssen wrote:
...
Here's a patch which makes test_ssl a better player in the buildbots
environment. I deep-ended on "try-except-else" clauses.
2007-08-26 19:35:09 +00:00
Neal Norwitz
7fc8e2993a
Fail gracefully if the cert files cannot be created
2007-08-26 18:50:39 +00:00
Neal Norwitz
482043aed6
Reap children before the test starts so hopefully SocketServer
...
won't find any old children left around which causes an exception
in collect_children() and the test to fail.
2007-08-26 06:29:57 +00:00
Neal Norwitz
60b52bd4ed
Fix typo in docstring (missing c in reacquire)
2007-08-26 01:08:16 +00:00
Neal Norwitz
8e58b34ee8
Try to get this test to pass for systems that do not have SO_REUSEPORT
2007-08-25 17:25:17 +00:00
Neal Norwitz
ce7fa56aac
Fix test so it is skipped properly if there is no SSL support.
2007-08-25 16:54:38 +00:00
Guido van Rossum
4f2c3ddca4
Server-side SSL and certificate validation, by Bill Janssen.
...
While cleaning up Bill's C style, I may have cleaned up some code
he didn't touch as well (in _ssl.c).
2007-08-25 15:08:43 +00:00
Nick Coghlan
1a42ece0c7
Fix bug 1764407 - the -i switch now does the right thing when using the -m switch
2007-08-25 10:50:41 +00:00
Nick Coghlan
3af0e785e7
Revert misguided attempt at fixing incompatibility between -m and -i switches (better fix coming soon)
2007-08-25 04:32:07 +00:00
Collin Winter
68f525fdc8
Make test_structmembers pass when run with regrtests's -R flag.
2007-08-24 21:09:42 +00:00
Georg Brandl
c325556505
Port test_class to unittest. Patch #1671298 .
2007-08-24 19:33:53 +00:00
Georg Brandl
ff9b963387
Catch the correct errors.
2007-08-24 19:22:34 +00:00
Collin Winter
0f5e87a266
Convert test_pkg to use unittest.
2007-08-24 19:13:58 +00:00
Georg Brandl
fe3b4b9507
Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in test_ossaudiodev.
2007-08-24 18:46:27 +00:00
Georg Brandl
e7445de2b1
Remove output file for test_ossaudiodev, also properly close the dsp object.
2007-08-24 18:35:27 +00:00
Georg Brandl
0c6a438aea
Remove test_rgbimg output file, there is no test_rgbimg.py.
2007-08-24 18:30:06 +00:00
Georg Brandl
692bbc4790
Port test_frozen to unittest.
2007-08-24 18:22:54 +00:00
Georg Brandl
9f2b93e03a
Patch #1008 : port test_signal to unittest.
2007-08-24 18:07:52 +00:00
Georg Brandl
3376a9a711
Patch #1006 : port test_winreg to unittest.
2007-08-24 17:38:49 +00:00
Guido van Rossum
966bb8c59b
Fix silly typo in test name.
2007-08-24 14:53:14 +00:00
Georg Brandl
8ec5754086
uuid creation is now threadsafe, backport from py3k rev. 57375.
2007-08-24 06:10:01 +00:00
Gregory P. Smith
1042a4d719
Fix bug 1725856.
2007-08-24 05:11:38 +00:00
Georg Brandl
daa6f254c6
Patch #1779550 : remove redundant code in logging.
2007-08-23 21:55:57 +00:00
Georg Brandl
da5f16ab19
Bug #1688564 : document os.path.join's absolute path behavior in the docstring.
2007-08-23 21:27:57 +00:00
Georg Brandl
ac4018ae39
Use try-except-finally in contextlib.
2007-08-23 18:11:33 +00:00
Brett Cannon
dbed7a7394
Make test_runpy re-entrant.
2007-08-23 14:53:17 +00:00
Gregory P. Smith
ca4669c152
stop leaving log.0000001 __db.00* and xxx.db turds in developer
...
sandboxes when bsddb3 tests are run.
2007-08-22 21:32:34 +00:00
Alex Martelli
d8672aa8a4
Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code
...
object's co_consts tuple; add a test to show that the previous behavior (where
these two constants were "collapsed" into one) causes serious malfunctioning.
2007-08-22 21:14:17 +00:00
Facundo Batista
1bc8d639df
Added test for behavior of operations on an unconnected SMTP object,
...
and tests for NOOP, RSET, and VRFY. Corrected typo in a comment for
testNonnumericPort. Added a check for constructing SMTP objects when
non-numeric ports are included in the host name. Derived a server from
SMTPServer to test various ESMTP/SMTP capabilities. Check that a
second HELO to DebuggingServer returns an error. [GSoC - Alan McIntyre]
2007-08-21 16:57:18 +00:00
Georg Brandl
d7e9f608c3
Revert accidental checkins from last commit.
2007-08-21 06:03:43 +00:00
Georg Brandl
fdca6d8599
Demand version 2.5.1 since 2.5 has a bug with codecs.open context managers.
2007-08-21 06:01:18 +00:00
Mark Hammond
1bb124ad0d
[ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
...
As discussed on distutils-sig: Allows the generated installer name on
64bit Windows platforms to be different than the name generated for
32bit Windows platforms.
2007-08-21 01:05:16 +00:00
Mark Hammond
e4f271f38d
[ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
...
As discussed on distutils-sig: Allows the generated installer name on
64bit Windows platforms to be different than the name generated for
32bit Windows platforms.
2007-08-21 01:04:47 +00:00
Facundo Batista
c65a5f1b14
Catch ProtocolError exceptions and include the header information in
...
test output (to make it easier to debug test failures caused by
problems in the server). [GSoC - Alan McIntyre]
2007-08-21 00:16:21 +00:00
Guido van Rossum
54ec61ea6e
Add a hack (originally devised in a slightly different form by Thomas Wouters)
...
to prevent spurious tracebacks when a daemon thread's cleanup happens to wake
up when the world around it has already been destroyed.
2007-08-20 15:18:04 +00:00
Hye-Shik Chang
2390104d81
Add cheot-ga-keut composed make-up sequence support in EUC-KR codec.
2007-08-20 06:49:18 +00:00
Brett Cannon
855da6cbbf
Make test_warnings re-entrant.
2007-08-17 20:16:15 +00:00
Facundo Batista
7f686fce40
Added a flag (_send_traceback_header) to the SimpleXMLRPCServer class
...
that allows sending back exception/stack trace information about
internal server errors (this flag defaults to False to avoid sending
such information unless explicitly enabled). Added tests to verify
behavior of this new feature (these tests are skipped on win32 because
of problems with WSAEWOULDBLOCK). Renamed HTTPTestCase to
SimpleServerTestCase. [GSoC - Alan McIntyre]
2007-08-17 19:16:44 +00:00
Walter Dörwald
6e39080649
Backport r57105 and r57145 from the py3k branch: UTF-32 codecs.
2007-08-17 16:41:28 +00:00
Facundo Batista
849693989a
When passed a bad formed literal to Decimal, now we have a
...
better error message, more descriptive. (bug #1770009 )
2007-08-15 15:13:09 +00:00
Brett Cannon
5a0382eeb6
Fix a missed instance of test.test_support.guard_warnings_filter (which was
...
recently removed).
2007-08-14 17:53:30 +00:00
Facundo Batista
a53872b09a
Added tests for simple function calls and introspection that are run
...
against a SimpleXMLRPCServer in a separate thread. Because of
problems with WSAEWOULDBLOCK (error 10035) being raised by the server
on Windows, these new tests are skipped on win32. [GSoC - Alan McIntyre]
2007-08-14 13:35:00 +00:00
Brett Cannon
2ee4128e9b
Remove test.test_support.guard_warnings_filter.
...
test.test_support.catch_warning is more full-featured and provides the same
functionality.
Since guard_warnings_filter was added in 2.6 there is no
backwards-compatibility issues.
2007-08-14 05:51:06 +00:00
Brett Cannon
7b97e8a9c2
Fix a minor typo in a docstring.
2007-08-14 03:38:47 +00:00
Georg Brandl
9616444427
Revert the fix for #1548891 , it broke backwards compatibility with arbitrary read buffers.
...
Fixes #1730114 .
2007-08-08 13:03:41 +00:00
Georg Brandl
0f6d360ac7
Replace unnecessary function call.
2007-08-06 07:39:09 +00:00
Hye-Shik Chang
f3e93a0268
Fix gb18030 codec's bug that doesn't map two-byte characters on
...
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
2007-08-04 04:10:18 +00:00
Facundo Batista
412b8b654c
Allow the OS to select a free port for each test server. For
...
DebuggingServerTests, construct SMTP objects with a localhost argument
to avoid abysmally long FQDN lookups (not relevant to items under
test) on some machines that would cause the test to fail. Moved server
setup code in the server function inside the try block to avoid the
possibility of setup failure hanging the test. Minor edits to conform
to PEP 8. [GSoC - Alan McIntyre]
2007-08-01 23:18:36 +00:00
Nick Coghlan
f8bbaa962f
Eliminate RLock race condition reported in SF bug #1764059
2007-07-31 13:38:01 +00:00
Facundo Batista
4950442fb7
When running asynchat tests on OS X (darwin), the test client now
...
overrides asyncore.dispatcher.handle_expt to do nothing, since
select.poll gives a POLLHUP error at the completion of these tests.
Added timeout & count arguments to several asyncore.loop calls to
avoid the possibility of a test hanging up a build. [GSoC - Alan
McIntyre]
2007-07-31 03:03:34 +00:00
Facundo Batista
ec62423be4
Added tests for asynchat classes simple_producer & fifo, and the
...
find_prefix_at_end function. Check behavior of a string given as a
producer. Added tests for behavior of asynchat.async_chat when given
int, long, and None terminator arguments. Added usepoll attribute to
TestAsynchat to allow running the asynchat tests with poll support
chosen whether it's available or not (improves coverage of asyncore
code). [GSoC - Alan McIntyre]
2007-07-29 14:23:08 +00:00
Facundo Batista
8eab424fb5
Moved all of the capture_server socket setup code into the try block
...
so that the event gets set if a failure occurs during server setup
(otherwise the test will block forever). Changed to let the OS assign
the server port number, and client side of test waits for port number
assignment before proceeding. The test data in DispatcherWithSendTests
is also sent in multiple send() calls instead of one to make sure this
works properly. [GSoC - Alan McIntyre]
2007-07-28 14:21:22 +00:00
Martin v. Löwis
f1e0b3f630
Bug #1704793 : Return UTF-16 pair if unicodedata.lookup cannot
...
represent the result in a single character.
2007-07-28 07:03:05 +00:00
Martin v. Löwis
f25e35b9ec
Bug #978833 : Close https sockets by releasing the _ssl object.
2007-07-27 18:28:22 +00:00
Nick Coghlan
ec2ce9bbae
Make test_math error messages more meaningful for small discrepancies in results
2007-07-27 10:36:30 +00:00
Nick Coghlan
00f2029cd5
Add explicit test for a misbehaving math.floor
2007-07-26 14:03:00 +00:00
Martin v. Löwis
254b8f9096
Change location of the package index to pypi.python.org/pypi
2007-07-25 16:24:23 +00:00
Nick Coghlan
55248d6c61
Add a temporary diagnostic message before a strange failure on the alpha Debian buildbot
2007-07-25 13:18:58 +00:00
Nick Coghlan
d44a5afaa9
More buildbot cleanup - let the OS assign the port for test_urllib2_localnet
2007-07-25 12:57:48 +00:00
Facundo Batista
16ed5b4bfe
New tests for basic behavior of smtplib.SMTP and
...
smtpd.DebuggingServer. Change to use global host & port number
variables. Modified the 'server' to take a string to send back in
order to vary test server responses. Added a test for the reaction of
smtplib.SMTP to a non-200 HELO response. [GSoC - Alan McIntyre]
2007-07-24 21:20:42 +00:00
Nick Coghlan
12adef9b8b
Try to get rid of spurious failure in test_resource on the Debian buildbots by changing the file size limit before attempting to close the file
2007-07-24 14:39:23 +00:00
Nick Coghlan
13c25c08ca
Fix an incompatibility between the -i and -m command line switches as reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates
2007-07-24 13:58:28 +00:00
Nick Coghlan
4f82a03714
Tweak runpy test to do a better job of confirming that sys has been manipulated correctly
2007-07-24 13:07:38 +00:00
Nick Coghlan
ae21fc6d1f
Correctly cleanup sys.modules after executing runpy relative import
...
tests
Restore Python 2.4 ImportError when attempting to execute a package
(as imports cannot be guaranteed to work properly if you try it)
2007-07-23 13:41:45 +00:00
Nick Coghlan
f17a2e4f87
Add explicit relative import tests for runpy.run_module
2007-07-22 10:18:07 +00:00
Facundo Batista
7f4f41255f
Selectively enable tests for asyncore.readwrite based on the presence
...
of poll support in the select module (since this is the only case in
which readwrite can be called). [GSoC - Alan McIntyre]
2007-07-22 00:13:00 +00:00
Facundo Batista
b1994b4a5d
Added a select.select call in the test server loop to make sure the
...
socket is ready to be read from before attempting a read (this
prevents an error 10035 on some Windows platforms). [GSoC - Alan
McIntyre]
2007-07-19 23:57:38 +00:00
Kurt B. Kaiser
db98f3632a
Fix failing unicode test caused by change to ast.c at r56441
2007-07-18 19:58:42 +00:00
Guido van Rossum
b6ac23cd07
SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.
...
(Slightly tweaked for style and refcounts.)
2007-07-18 17:19:14 +00:00
Facundo Batista
78e19616f3
Prevent asyncore.dispatcher tests from hanging by adding loop counters
...
to server & client, and by adding asyncore.close_all calls in
tearDown. Also choose correct expected logging results based on the
value of __debug__ [Alan McIntyre - GSoC]
2007-07-17 02:19:39 +00:00
Facundo Batista
66263cf151
Changed the used port and commented out some tests that uses
...
a non documented function that appers to uses resources
not present in Windows.
2007-07-15 20:30:39 +00:00
Facundo Batista
f47bc182f1
First version. Includes tests for helper functions: read, write,
...
_exception, readwrite, closeall, compact_traceback; and for classes
dispatcher, dispatcher_with_send, and file_wrapper.
[Alan McIntyre - GSoC]
2007-07-14 22:41:45 +00:00
Andrew M. Kuchling
2b09ef0c6d
Avoid exception if there's a stray directory inside a Maildir folder.
...
The Maildir specification doesn't seem to say anything about this
situation, and it can happen if you're keeping a Maildir mailbox in
Subversion (.svn directories) or some similar system. The patch just
ignores directories in the cur/, new/, tmp/ folders.
2007-07-14 21:56:19 +00:00
Barry Warsaw
81a06d4260
In response to this SF bug:
...
[ 1752723 ] email.message_from_string: initial line gets discarded
I added a test to assert that when the first line of text passed to
message_from_string() contains a leading space, the message ends up with the
appropriate FirstHeaderLineIsContinuationDefect on its defects list.
The bug is invalid.
2007-07-13 22:12:58 +00:00
Thomas Heller
fa704c6ade
Fix for SF# 1701409: segfault in c_char_p of ctypes. The repr output
...
of c_char_p and c_wchar_p has changed as a sideeffect.
2007-07-13 17:12:23 +00:00
Thomas Heller
ad0cfe3dd7
Do not try to load the GLUT library in the ctypes tests. This test
...
adds little value, but has a large problem on OS X, as explained in
SF# 1581906.
2007-07-13 16:50:43 +00:00
Thomas Heller
1fd1cc5be2
Add tests for _ctypes.COMError.
2007-07-13 14:18:06 +00:00
Facundo Batista
5a3b524e8e
Added tests for basic behavior of DateTime, Binary, and Fault classes
...
and the escape function. Check that marshalling recursive sequences &
dicts raises TypeError. Check that marshalling out-of-range ints
raises OverflowError [Alan McIntyre - GSoC]
2007-07-13 10:43:44 +00:00
Georg Brandl
4b3ab6fcc0
Patch #1675424 : Added tests for uncovered code in the zipfile module.
...
The KeyError raised by Zipfile.getinfo for nonexistent names now has
a descriptive message.
2007-07-12 09:59:22 +00:00
Georg Brandl
b2e208f901
Patch #1731169 : clean up expected skips list.
2007-07-12 09:24:04 +00:00
Georg Brandl
7c3b50db66
Patch #1673759 : add a missing overflow check when formatting floats
...
with %G.
2007-07-12 08:38:00 +00:00
Georg Brandl
bc5fbd9f8c
Patch #1739696 : use code.co_code only if really necessary
2007-07-12 08:11:29 +00:00
Georg Brandl
f91149e4a1
Patch #1752270 , #1750931 : complain if urllib2 add_handler called
...
without handler.
2007-07-12 08:05:45 +00:00
Ronald Oussoren
9b0bcc1f4b
Patch 1693258: Fix for duplicate "preferences" menu-OS X
2007-07-09 06:02:21 +00:00
Neal Norwitz
e3b185f966
Fix typo in comment
2007-07-06 04:13:39 +00:00
Georg Brandl
ee250301b7
Fix a few webbrowser.py problems.
2007-07-01 08:11:35 +00:00
Georg Brandl
75ec1dbd9d
Bug #1737864 : allow empty message in logging format routines.
2007-06-19 12:36:00 +00:00
Lars Gustäbel
104490e615
Added exclude keyword argument to the TarFile.add() method.
2007-06-18 11:42:11 +00:00
Marc-André Lemburg
b24cd0f05a
Add patch #1726668 : Windows Vista support.
2007-06-12 09:26:49 +00:00
Marc-André Lemburg
0e09788eda
Apply patch #1734945 to support TurboLinux as distribution.
2007-06-12 09:09:58 +00:00
Neal Norwitz
c161cb9955
Bug #1734723 : Fix repr.Repr() so it doesn't ignore the maxtuple attribute.
...
Will backport
2007-06-11 07:29:43 +00:00
Neal Norwitz
ade2c216e1
Not sure why this only fails sometimes on Unix machines. Better
...
to disable it and only import msvccompiler on Windows since that's
the only place it can work anyways.
2007-06-11 06:16:48 +00:00
Neal Norwitz
478b99b89f
Add all of the distuils modules that don't seem to have explicit tests. :-(
...
Move an import in mworkscompiler so that this module can be imported on
any platform. Hopefully this works on all platforms.
2007-06-11 05:28:45 +00:00
Neal Norwitz
fdffca27c1
Prevent hang if the port cannot be opened.
2007-06-11 04:52:37 +00:00
Neal Norwitz
5c9a81a3d8
Fix a bug when there was a newline in the string expandtabs was called on.
...
This also catches another condition that can overflow.
Will backport.
2007-06-11 02:16:10 +00:00
Neal Norwitz
ba965deea8
Prevent these tests from running on Win64 since they don\'t apply there either
2007-06-11 02:14:39 +00:00
Martin v. Löwis
6371cd8177
Patch #1733960 : Allow T_LONGLONG to accept ints.
...
Will backport to 2.5.
2007-06-09 07:42:52 +00:00
Neal Norwitz
7dbd2a3720
Prevent expandtabs() on string and unicode objects from causing a segfault when
...
a large width is passed on 32-bit platforms. Found by Google.
It would be good for people to review this especially carefully and verify
I don't have an off by one error and there is no other way to cause overflow.
2007-06-09 03:36:34 +00:00
Thomas Heller
1b9e041812
Make this test work with older Python releases where struct has no 't' format character.
2007-06-08 16:10:27 +00:00
Georg Brandl
ff8712263d
Patch #1667860 : Fix UnboundLocalError in urllib2.
2007-06-07 13:34:10 +00:00
Georg Brandl
e06cf4534f
Disallow function calls like foo(None=1).
...
Backport from py3k rev. 55708 by Guido.
2007-06-07 13:23:24 +00:00
Facundo Batista
10951d51e2
Added an optional timeout parameter to function urllib2.urlopen,
...
with tests in test_urllib2net.py (must have network resource
enabled to execute them). Also modified test_urllib2.py because
testing mock classes must take it into acount. Docs are also
updated.
2007-06-06 17:15:23 +00:00
Facundo Batista
9249312020
FTP.ntransfercmd method now uses create_connection when passive,
...
using the timeout received in connection time.
2007-06-06 15:13:37 +00:00
Collin Winter
50b79ce8e6
Patch #1731049 : make threading.py use a proper "raise" when checking internal state, rather than assert statements (which get stripped out by -O).
2007-06-06 00:17:35 +00:00
Hye-Shik Chang
f9a0ea8ce1
Fix for Windows: close a temporary file before trying to delete it.
2007-06-05 19:28:15 +00:00
Hye-Shik Chang
9b5414090b
Bug #1728403 : Fix a bug that CJKCodecs StreamReader hangs when it
...
reads a file that ends with incomplete sequence and sizehint argument
for .read() is specified.
2007-06-05 18:58:51 +00:00
Brett Cannon
f7188cefb3
Make _strptime.TimeRE().pattern() use ``\s+`` for matching whitespace instead
...
of ``\s*``. This prevents patterns from "stealing" bits from other patterns in
order to make a match work.
Closes bug #1730389 . Will be backported.
2007-06-03 23:13:41 +00:00
Neal Norwitz
4a700bb469
SF 1668596/1720897: distutils now copies data files
...
even if package_dir is empty.
This needs to be backported. I'm too tired tonight. It would be great
if someone backports this if the buildbots are ok with it. Otherwise,
I will try to get to it tomorrow.
2007-06-01 07:29:12 +00:00
Brett Cannon
f0cb1d7ad6
Have cfmfile raise a DeprecationWarning as per PEP 4.
2007-05-31 20:01:11 +00:00
Brett Cannon
791d56f1f7
Cause buildtools to raise a DeprecationWarning.
2007-05-31 19:40:42 +00:00
Brett Cannon
c2aa09ad80
Have the sha module raise a DeprecationWarning as specified in PEP 4.
2007-05-31 19:20:00 +00:00
Brett Cannon
7eec217908
Have md5 raise a DeprecationWarning as per PEP 4.
2007-05-30 22:24:28 +00:00
Brett Cannon
c249bdab92
Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
...
module as deprecated for a while.
2007-05-30 21:48:58 +00:00
Brett Cannon
90134c9a05
Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.
2007-05-30 20:46:26 +00:00
Thomas Heller
b4eec28e33
Correct the name of a field in the WIN32_FIND_DATAA and WIN32_FIND_DATAW structures.
...
Closes bug #1726026 .
2007-05-30 07:01:25 +00:00
Martin v. Löwis
e9607e24a7
Revert 55634.
2007-05-29 04:02:03 +00:00
Martin v. Löwis
a652f69c1c
Test pre-commit hook for a link to a .py file.
2007-05-29 04:01:29 +00:00
Lars Gustäbel
a0fcb9384e
Added errors argument to TarFile class that allows the user to
...
specify an error handling scheme for character conversion. Additional
scheme "utf-8" in read mode. Unicode input filenames are now
supported by design. The values of the pax_headers dictionary are now
limited to unicode objects.
Fixed: The prefix field is no longer used in PAX_FORMAT (in
conformance with POSIX).
Fixed: In read mode use a possible pax header size field.
Fixed: Strip trailing slashes from pax header name values.
Fixed: Give values in user-specified pax_headers precedence when
writing.
Added unicode tests. Added pax/regtype4 member to testtar.tar all
possible number fields in a pax header.
Added two chapters to the documentation about the different formats
tarfile.py supports and how unicode issues are handled.
2007-05-27 19:49:30 +00:00
Peter Astrand
81a191b351
Applied patch 1669481, slightly modified: Support close_fds on Win32
2007-05-26 22:18:20 +00:00
Brett Cannon
6cef076ba5
Remove direct call's to file's constructor and replace them with calls to
...
open() as ths is considered best practice.
2007-05-25 20:17:15 +00:00
Vinay Sajip
754a5fb640
Updated docstring for SysLogHandler ( #1720726 ).
2007-05-25 07:05:59 +00:00
Neal Norwitz
38917f56fe
Get test passing again by commenting out the reference to the test class.
2007-05-25 05:13:40 +00:00
Facundo Batista
d9880d07fc
Commenting out the tests until find out who can test them in
...
one of the problematic enviroments.
2007-05-25 04:20:22 +00:00
Facundo Batista
e312416809
Fixing stupid error, and introducing a sleep, to see if the
...
other thread is awakened and finish sending data.
2007-05-25 03:47:19 +00:00
Facundo Batista
b4dfafaba6
Trying to make the tests work in Windows and Solaris, everywhere
...
else just works
2007-05-25 03:10:28 +00:00
Facundo Batista
62c744e7d1
Let's see if reading exactly what is written allow this live
...
test to pass (now I know why there were so few tests in ftp,
http, etc, :( ).
2007-05-24 20:51:19 +00:00
Facundo Batista
965fa24e8d
Removed the .recv() in the test, is not necessary, and was
...
causing problems that didn't have anything to do with was
actually being tested...
2007-05-24 20:01:59 +00:00
Facundo Batista
711a54ebde
Added an optional timeout parameter to urllib.ftpwrapper, with tests
...
(for this and a basic one, because there weren't any). Changed also
NEWS, but didn't find documentation for this function, assumed it
wasn't public...
2007-05-24 17:50:54 +00:00
Georg Brandl
dd96ca3d6b
Fix parameter passing.
2007-05-24 17:33:33 +00:00
Georg Brandl
c90bc75994
shlex.split() now has an optional "posix" parameter.
2007-05-24 16:49:29 +00:00
Georg Brandl
2134e754f2
Patch #1686487 : you can now pass any mapping after '**' in function calls.
2007-05-21 20:34:16 +00:00
Facundo Batista
70f996be24
Added timeout support to HTTPSConnection, through the
...
socket.create_connection function. Also added a small
test for this, and updated NEWS file.
2007-05-21 17:32:32 +00:00
Raymond Hettinger
767debb6aa
Allow all alphanumeric and underscores in type and field names.
2007-05-21 16:40:10 +00:00
Raymond Hettinger
0d6a8ccfb7
Replace assertion with straight error-checking.
2007-05-21 08:13:35 +00:00
Brett Cannon
41bf2fad62
Cause posixfile to raise a DeprecationWarning. Documented as deprecated since
...
Ptyhon 1.5.
2007-05-20 23:57:38 +00:00
Brett Cannon
49da0ead95
Move imgfile import to the global namespace to trigger an import error ASAP to
...
prevent creation of a test file.
2007-05-20 23:56:18 +00:00
Brett Cannon
5e2635103c
Remove the macfs module. This led to the deprecation of macostools.touched();
...
it completely relied on macfs and is a no-op on OS X according to code
comments.
2007-05-20 23:17:38 +00:00
Brett Cannon
dc48b74497
Remove the rgbimg module. It has been deprecated since Python 2.5.
2007-05-20 07:09:50 +00:00
Georg Brandl
8d76cca026
Fix docstring for add_package in site.py.
2007-05-19 18:09:26 +00:00
Neal Norwitz
d410b320ec
Give some clue as to what happened if the test fails.
2007-05-19 04:35:52 +00:00
Raymond Hettinger
f3241a3727
Fix beginner mistake -- don't mix spaces and tabs.
2007-05-19 01:50:11 +00:00
Raymond Hettinger
5a41daf096
Improvements to NamedTuple's implementation, tests, and documentation
2007-05-19 01:11:16 +00:00
Collin Winter
6290305e67
Backport PEP 3110's new 'except' syntax to 2.6.
2007-05-18 23:11:24 +00:00
Neal Norwitz
6eb7bede72
Verify neither dumps or loads overflow the stack and segfault.
2007-05-18 05:47:16 +00:00
Raymond Hettinger
72ef8daa88
calendar.py gets no benefit from xrange() instead of range()
2007-05-17 01:08:04 +00:00
Brett Cannon
d75f043c33
Remove the gopherlib module. It has been raising a DeprecationWarning since
...
Python 2.5.
Also remove gopher support from urllib/urllib2. As both imported gopherlib the
usage of the support would have raised a DeprecationWarning.
2007-05-16 22:42:29 +00:00
Neal Norwitz
b1a9b37aa8
Fix bug in marshal where bad data would cause a segfault due to
...
lack of an infinite recursion check.
Contributed by Damien Miller at Google.
2007-05-16 20:05:11 +00:00
Georg Brandl
a09a96a544
HTML-escape the plain traceback in cgitb's HTML output, to prevent
...
the traceback inadvertently or maliciously closing the comment and
injecting HTML into the error page.
2007-05-15 20:19:34 +00:00
Raymond Hettinger
8be9ab8497
Small speedup.
2007-05-14 20:52:31 +00:00
Neal Norwitz
cd498be90e
Remove support for freebsd[23] which haven't been released since 2000
...
or earlier. http://www.freebsd.org/releases/index.html
2007-05-13 21:13:42 +00:00
Georg Brandl
0c1f6fcaac
Add bz2 to content encodings.
2007-05-13 08:04:07 +00:00
Raymond Hettinger
a74b67e15e
Better tests for posixpath.commonprefix
2007-05-11 17:59:59 +00:00
Neal Norwitz
42dd86b8e2
Deprecate os.popen* and popen2 module in favor of the subprocess module.
2007-05-11 06:57:33 +00:00
Neal Norwitz
82be218e97
Remove trailing whitespace in docstring
2007-05-11 06:56:52 +00:00
Neal Norwitz
aa87fb6be4
Fix typo in docstring (the module is popen2, not 3).
2007-05-11 06:23:01 +00:00
Neal Norwitz
d9841039db
Don't ever report a failure when the sum of the reference count differences
...
are zero. This should help reduce the false positives.
The message about references leaking is maintained to provide as much
info as possible rather than simply suppressing the message at the source.
2007-05-11 05:55:15 +00:00
Collin Winter
fa9be8c289
Fix a bug in test.test_support.open_urlresource().
...
If the call to requires() doesn't precede the filesystem check, we get the following situation:
1. ./python Lib/test/regrtest.py test_foo # test needs urlfetch, not enabled, so skipped
2. ./python Lib/test/regrtest.py -u urlfetch test_foo # test runs
3. ./python Lib/test/regrtest.py test_foo # test runs (!)
By moving the call to requires() *before* the filesystem check, the fact that fetched files are cached on the local disk becomes an implementation detail, rather than a semantics-changing point of note.
2007-05-09 04:14:36 +00:00
Brett Cannon
229cee2d3d
Deprecate BaseException.message as per PEP 352.
2007-05-05 01:34:02 +00:00
Thomas Heller
2ebc4d8054
Oops, these tests do not run on Windows CE.
2007-05-04 19:56:32 +00:00
Thomas Heller
1ad576c267
Do not truncate 64-bit pointers to 32-bit integers.
...
Fixes SF #1703286 , will backport to release25-maint.
2007-05-04 19:54:22 +00:00
Thomas Heller
0455214f1c
Fix some ctypes test crashes, when running with a debug Python
...
version on win64 by using proper argtypes and restype function
attributes.
2007-05-04 07:14:39 +00:00
Kristján Valur Jónsson
170eee9d6a
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform.
2007-05-03 20:09:56 +00:00
Armin Rigo
9790a27065
Fix for #1303614 and #1174712 :
...
- __dict__ descriptor abuse for subclasses of built-in types
- subclassing from both ModuleType and another built-in types
Thanks zseil for the patch.
2007-05-02 19:23:31 +00:00
Vinay Sajip
70c8e8b861
Added new optional credentials argument to SMTPHandler.__init__, and smtp.login() is now called in SMTPHandler.emit() if credentials are specified.
2007-05-01 10:20:03 +00:00
Georg Brandl
09728b7ef3
Patch #1710352 : add missing public functions to locale.__all__.
2007-05-01 06:08:15 +00:00
Neal Norwitz
1b59d10ce2
This gets the test working on Solaris. It seems a little hokey to me,
...
but the test passed on Linux and Solaris, hopefully other platforms too.
2007-04-27 06:45:32 +00:00
Kristján Valur Jónsson
94b706be35
The locale "En" appears not to be valid on windows underi VisualStudio.2005. Added "English" to the test_locale.py to make the testsuite pass for that build
2007-04-26 13:44:16 +00:00
Collin Winter
cf795b49a9
Fix an issue related to the unittest conversion.
2007-04-25 21:50:25 +00:00
Collin Winter
fb5b9890fb
Convert test_ossaudiodev to use unittest.
2007-04-25 20:41:34 +00:00
Collin Winter
f00c5b5873
Import and raise statement cleanup.
2007-04-25 18:54:36 +00:00
Collin Winter
297996b7d3
Change test_support.have_unicode to use True/False instead of 1/0.
2007-04-25 17:57:53 +00:00
Collin Winter
bec754c2b5
Remove functionality from test_datetime.test_main() that does reference count checking; 'regrtest.py -R' is the way to do this kind of testing.
2007-04-25 17:37:35 +00:00
Collin Winter
c2898c5a67
Standardize on test.test_support.run_unittest() (as opposed to a mix of run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
2007-04-25 17:29:52 +00:00
Neal Norwitz
0d4c06e06e
Whitespace normalization. Ugh, we really need to do this more often.
...
You might want to review this change as it's my first time. Be gentle. :-)
2007-04-25 06:30:05 +00:00
Georg Brandl
fb4b3b77c7
Bug #1706381 : Specifying the SWIG option "-c++" in the setup.py file
...
(as opposed to the command line) will now write file names ending in
".cpp" too.
2007-04-24 15:27:13 +00:00
Neal Norwitz
8eea9ac889
Fix SF #1703110 , Incorrect example for add_password() (use uri, not host)
2007-04-24 04:53:12 +00:00
Collin Winter
d0bfa74541
Remove code that hasn't been called in years.
2007-04-24 04:09:52 +00:00
Collin Winter
0fe118b957
Convert PyUnit -> unittest.
2007-04-24 03:43:46 +00:00
Facundo Batista
9fab9f103f
As specified in RFC 2616, 2xx code indicates that the client's
...
request was successfully received, understood, and accepted.
Now in these cases no error is raised. Also fixed tests.
2007-04-23 17:08:31 +00:00
Facundo Batista
9f87128d8b
Added tests for other methods of SSL object. Now we cover
...
all the object methods. This is the final step to close
the #451607 bug.
2007-04-22 01:18:56 +00:00
Georg Brandl
24522982d0
Bug #1704790 : bind name "sys" locally in __del__ method so that it is
...
not cleared before __del__ is run.
2007-04-21 20:35:38 +00:00
Armin Rigo
c0ba52d3fd
Revert r53997 as per
...
http://mail.python.org/pipermail/python-dev/2007-March/071796.html .
I've kept a couple of still-valid extra tests in test_descr, but didn't
bother to sort through the new comments and refactorings added in r53997
to see if some of them could be kept. If so, they could go in a
follow-up check-in.
2007-04-19 14:44:48 +00:00
Collin Winter
c20a250170
Check the availability of the urlfetch resource earlier than before.
2007-04-16 22:10:32 +00:00
Neal Norwitz
cbd9ee69ee
When __slots__ are set to a unicode string, make it work the same as
...
setting a plain string, ie don't expand to single letter identifiers.
2007-04-14 05:25:50 +00:00
Barry Warsaw
25a3864541
Port r54805 from python25-maint branch:
...
Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read. Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write. This will definitely happen on Mac OS X and could potentially
happen on other platforms. See the comment for details.
2007-04-13 18:47:14 +00:00
Walter Dörwald
4234827e99
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
...
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.
2007-04-12 10:35:00 +00:00
Žiga Seilnacht
9aba6d6905
Patch #1695862 : remove the cleanup code, now that Windows buildbots are green
...
again.
2007-04-12 08:46:51 +00:00
Georg Brandl
e2d827d7ef
Patch #1698951 : clarify deprecation message in rexec and Bastion
2007-04-12 07:01:19 +00:00
Raymond Hettinger
4db5fe970c
SF 1193128: Let str.translate(None) be an identity transformation
2007-04-12 04:10:00 +00:00
Georg Brandl
135c3174e7
Exceptions are no longer old-style instances. Fix accordingly.
2007-04-11 19:25:11 +00:00
Raymond Hettinger
13936697f6
SF 1191699: Make slices picklable
2007-04-11 18:40:58 +00:00
Andrew M. Kuchling
400a49ba79
Add window.chgat() method, submitted via e-mail by Fabian Kreutz
2007-04-11 13:39:00 +00:00
Facundo Batista
59c5884b4c
General clean-up. Lot of margin corrections, comments, some typos.
...
Exceptions now are raised in the new style. And a mockup class is
now also new style. Thanks Santiago Pereson.
2007-04-10 12:58:45 +00:00
Collin Winter
8341aac123
Typo fix.
2007-04-10 04:44:49 +00:00
Facundo Batista
3bdc002e39
Minor fix to the tests pass ok even with -O.
2007-04-10 03:00:37 +00:00
Žiga Seilnacht
d5b3fed17d
Patch #1695862 : remove old test directory that causes test_urllib failures
...
on Windows buildbots. The change is a one time fix and will be removed
after a successful buildbot run.
2007-04-09 19:10:29 +00:00
Vinay Sajip
aa7b16a888
Added optional timeout to SocketHandler.makeSocket (SF #1695948 )
2007-04-09 16:16:10 +00:00
Collin Winter
bf61856427
Convert test_fileinput to use unittest.
2007-04-07 04:40:43 +00:00
Collin Winter
69c955f05d
Convert test_module to use unittest.
2007-04-06 20:03:11 +00:00
Collin Winter
fef1dcf433
Convert test_gc to use unittest.
2007-04-06 20:00:05 +00:00
Collin Winter
e10deca7e0
Import cleanup in test_crypt.
2007-04-06 19:32:32 +00:00
Collin Winter
1dd9a2ccc3
Convert test_stringprep to use unittest.
2007-04-06 19:27:40 +00:00
Collin Winter
9405609c17
Convert test_normalization to use unittest.
2007-04-05 20:08:56 +00:00
Collin Winter
fe712fb9ca
Convert test_long_future to use unittest.
2007-04-05 20:05:07 +00:00
Raymond Hettinger
7a3d41f4ca
Bug #1563759 : struct.unpack doens't support buffer protocol objects
2007-04-05 18:00:03 +00:00
Žiga Seilnacht
18ffe42b4b
Fix WalkTests.test_traversal() on Windows. The cleanup in
...
MakedirTests.setUp() can now be removed.
2007-04-04 18:38:47 +00:00
Collin Winter
10fe455529
Make test_softspace use unittest.
2007-04-04 18:36:30 +00:00
Collin Winter
82c3671565
Make test_getopt use unittest.
2007-04-04 18:33:40 +00:00
Martin v. Löwis
3bf573f918
Bug #1686475 : Support stat'ing open files on Windows again.
...
Will backport to 2.5.
2007-04-04 18:30:36 +00:00
Collin Winter
80e8c998a2
Stop using test_support.verify().
2007-04-04 18:16:24 +00:00
Collin Winter
9475db7662
Clean up imports.
2007-04-04 18:14:17 +00:00
Guido van Rossum
b1bb01e2f6
Fix a race condition in this test -- instead of assuming that it will take
...
the test server thread at most 0.5 seconds to get ready, use an event
variable.
2007-04-04 17:43:02 +00:00
Facundo Batista
06c6579036
Fixed the way that the .pem files are looked for, and changed
...
how to kill the process in win32 to use the _handle attribute.
2007-04-04 14:10:40 +00:00
Facundo Batista
a0da5c7bce
Changed the whole structure of startup and checking if the
...
server is available. Hope to not get more false alarms.
2007-04-03 21:15:34 +00:00
Walter Dörwald
e6dae6c655
Implement a contextmanager test.test_support.catch_warning that can
...
be used to catch the last warning issued by the warning framework.
Change test_warnings.py and test_structmembers.py to use this
new contextmanager.
2007-04-03 18:33:29 +00:00
Facundo Batista
c4a106733c
Added a SSL server to test_socket_ssl.py to be able to test
...
locally. Now, it checks if have openssl available and run
those specific tests (it starts openssl at the beggining of
all the tests and then kills it at the end).
2007-04-03 17:29:48 +00:00
Walter Dörwald
e1a9b42c38
Add tests for the filename.
...
Test that the stacklevel is handled correctly.
2007-04-03 16:53:43 +00:00
Walter Dörwald
8bd65000d7
Document that CatchWarningTests is reused by test_structmembers.py.
2007-04-03 16:16:24 +00:00
Walter Dörwald
d815d357b2
Move the functionality for catching warnings in test_warnings.py into a separate
...
class to that reusing the functionality in test_structmembers.py doesn't rerun
the tests from test_warnings.py.
2007-04-03 16:08:10 +00:00
Facundo Batista
c3a35e19cc
Now using unittest for the tests infraestructure. Also split the
...
tests in those who need the network, and that who doesn't.
2007-04-03 14:05:08 +00:00
Raymond Hettinger
7352cf5935
SF 1602378 Clarify docstrings for bisect
2007-04-03 00:02:11 +00:00
Guido van Rossum
ab8802a4f7
Fix warnings about object.__init__() signature.
...
Two (test_array and test_descr) were bug IMO; the third (copy_reg)
is a work-around which recognizes that object.__init__() doesn't do
anything.
2007-04-02 23:55:37 +00:00
Raymond Hettinger
01a807db2a
Array module's buffer interface can now handle empty arrays.
2007-04-02 22:54:21 +00:00
Raymond Hettinger
e6e660bde3
SF #1693079 : Cannot save empty array in shelve
2007-04-02 17:29:30 +00:00
Brett Cannon
c7a2e4656e
Fix the test for recreating the locale cache object by not worrying about if
...
one of the test locales cannot be set.
2007-04-01 19:46:19 +00:00
Brett Cannon
c69066501b
time.strptime's caching of its locale object was being recreated when the
...
locale changed but not used during the function call it was recreated during.
The test in this checkin is untested (OS X does not have the proper locale
support for me to test), although the fix for the bug this deals with
was tested by the OP (#1290505 ). Once the buildbots verify the test at least
doesn't fail it becomes a backport candidate.
2007-04-01 18:47:27 +00:00
Neal Norwitz
8f35f44af3
SF #1685563 , MSVCCompiler creates redundant and long PATH strings
...
If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated. On Windows, this is a problem because the
path is limited to 4k. There's no benefit in adding a path multiple
times, so prevent that from occuring. We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.
Will backport.
2007-04-01 18:24:22 +00:00
Collin Winter
1520fe4e58
Shut up an occaisonal buildbot error due to test files being left around.
2007-03-31 19:31:34 +00:00
Marc-André Lemburg
2365fcde60
Bump the patch level version of distutils since there were a few bug fixes since
...
the 2.5.0 release.
2007-03-30 15:01:42 +00:00
Facundo Batista
93c33680a0
Added the posibility to pass the timeout to FTP.connect, not only when
...
instantiating the class. Docs and tests are updated.
2007-03-30 13:00:35 +00:00
Facundo Batista
b6a5c9d605
Added timout parameter to telnetlib.Telnet. Also created
...
test_telnetlib.py with a basic test and timeout ones.
Docs are also updated.
2007-03-29 18:22:35 +00:00
Collin Winter
04a51ec8a3
Make test_zipfile clean up its temporary files properly.
2007-03-29 02:28:16 +00:00
Collin Winter
d28fcbc7fb
Consolidate patches #1690164 , 1683397, and 1690169, all of which refactor XML-related test suites. The patches are applied together because they use a common output/xmltests file.
...
Thanks to Jerry Seutter for all three patches.
2007-03-28 23:34:06 +00:00
Facundo Batista
366d6262f8
Added timeout to smtplib (to SMTP and SMTP_SSL). Also created
...
the test_smtplib.py file, with a basic test and the timeout
ones. Docs are updated too.
2007-03-28 18:25:54 +00:00
Facundo Batista
1fe9f968a2
Bug 1688393. Adds a control of negative values in
...
socket.recvfrom, which caused an ugly crash.
2007-03-28 03:45:20 +00:00
Facundo Batista
b20c500251
The basic test cases of poplib.py.
2007-03-27 18:50:29 +00:00
Facundo Batista
1b1c347311
Added an optional timeout to poplib.POP3. Also created a
...
test_poplib.py file with a basic test and the timeout
ones. Docs are also updated.
2007-03-27 18:23:21 +00:00
Facundo Batista
3f10099289
Forgot to add the file before the previous commit, here go
...
the ftplib tests.
2007-03-26 20:56:09 +00:00
Georg Brandl
f03facfe90
Some nits.
2007-03-26 20:28:28 +00:00
Facundo Batista
f196629eba
Closing the HTTP connection after each test, and listening more.
2007-03-25 03:20:05 +00:00
Facundo Batista
b8af7bcad5
Redone the tests, using the infrastructure already present
...
for threading and socket serving.
2007-03-25 01:53:21 +00:00
Collin Winter
75c7eb4fd8
Make test_relpath() pass on Windows.
2007-03-23 22:24:39 +00:00
Facundo Batista
14553b08a1
Surrounded with try/finally to socket's default timeout setting
...
changes in the tests, so failing one test won't produce strange
results in others. Also relaxed the timeout settings in the test
(where actually the value didn't mean anything).
2007-03-23 20:23:08 +00:00
Facundo Batista
07c78be0b4
Added a 'create_connect()' function to socket.py, which creates a
...
connection with an optional timeout, and modified httplib.py to
use this function in HTTPConnection. Applies patch 1676823.
2007-03-23 18:54:07 +00:00
Guido van Rossum
f102e24bd3
Add a type.__init__() method that enforces the same signature as
...
type.__new__(), and then calls object.__init__(cls), just to be anal.
This allows us to restore the code in string.py's _TemplateMetaclass
that called super(...).__init__(name, bases, dct), which I commented
out yesterday since it broke due to the stricter argument checking
added to object.__init__().
2007-03-23 18:53:03 +00:00
Martin v. Löwis
0af338859b
Bug #978833 : Revert r50844, as it broke _socketobject.dup.
...
Will backport.
2007-03-23 13:27:15 +00:00
Guido van Rossum
143b564059
- Bug #1683368 : The object.__init__() and object.__new__() methods are
...
now stricter in rejecting excess arguments. The only time when
either allows excess arguments is when it is not overridden and the
other one is. For backwards compatibility, when both are
overridden, it is a deprecation warning (for now; maybe a Py3k
warning later).
When merging this into 3.0, the warnings should become errors.
Note: without the change to string.py, lots of spurious warnings happen.
What's going on there?
2007-03-23 04:58:42 +00:00
Raymond Hettinger
e3146f5aa3
Add test and fix for fromkeys() optional argument.
2007-03-21 20:33:57 +00:00
Žiga Seilnacht
7492e4260e
Bug #1675967 : re patterns pickled with older Python versions can
...
now be unpickled. Will backport.
2007-03-21 20:07:56 +00:00
Georg Brandl
972ca507aa
Fix #1684254 : split BROWSER contents with shlex to avoid displaying 'URL'.
2007-03-21 11:51:25 +00:00
Georg Brandl
cae9f3d916
New test for rev. 54407 which only uses directories under TESTFN.
2007-03-21 09:10:29 +00:00
Georg Brandl
5cb76c19ba
Patch #1682205 : a TypeError while unpacking an iterable is no longer
...
masked by a generic one with the message "unpack non-sequence".
2007-03-21 09:00:39 +00:00
Georg Brandl
b54a809825
Fix for glob.py if filesystem encoding is None.
2007-03-20 23:05:14 +00:00
Raymond Hettinger
0bbbfc4c0b
Extend work on rev 52962 and 53829 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.
2007-03-20 21:27:24 +00:00
Neal Norwitz
ce55e21c70
Try to get test_urllib to pass on Windows by closing the file.
...
I'm guessing that's the problem. h.getfile() must be called *after*
h.getreply() and the fp can be None.
I'm not entirely convinced this is the best fix (or even correct).
The buildbots will tell us if things improve or not. I don't
know if this needs to be backported (assuming it actually works).
2007-03-20 08:14:57 +00:00
Neal Norwitz
6cbd8de641
Try to be a little more resilient to errors. This might help the test
...
pass, but my guess is that it won't. I'm guessing that some other
test is leaving this file open which means it can't be removed
under Windows AFAIK.
2007-03-20 06:53:17 +00:00
Neal Norwitz
b0a7d4ec68
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:16:26 +00:00
Neal Norwitz
ce2ab351f0
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:13:25 +00:00
Neal Norwitz
c990f6454f
Try backing out 54407 to see if it corrects the problems on the Windows
...
buildbots. This rev was backported, so we will need to keep both branches
in sync, pending the outcome of the test after this checkin.
2007-03-20 05:23:09 +00:00
Neal Norwitz
c473d5ebab
Get rid of deprecation warning when testing commands.getstatus()
2007-03-20 05:21:21 +00:00
Collin Winter
a8785cc26a
Patch #1630118 : add a SpooledTemporaryFile class to tempfile.
2007-03-19 18:52:08 +00:00
Georg Brandl
d9dbe72056
Patch #1678339 : test case for bug in difflib.
2007-03-18 18:28:25 +00:00
Georg Brandl
2b869943fa
Patch #1675423 : PyComplex_AsCComplex() now tries to convert an object
...
to complex using its __complex__() method before falling back to the
__float__() method. Therefore, the functions in the cmath module now
can operate on objects that define a __complex__() method.
(backport)
2007-03-17 16:08:45 +00:00
Collin Winter
6f187743ff
Patch 1339796: add a relpath() function to os.path.
2007-03-16 22:16:08 +00:00
Collin Winter
6de691d78c
Remove test/output/test_popen2 (missed in r54417).
2007-03-16 21:15:35 +00:00
Collin Winter
1b4145dbb3
Patch #1676994 : Refactor test_popen2 to use unittest.
2007-03-16 21:13:35 +00:00
Žiga Seilnacht
6f2d09c949
Patch #1623563 : allow __class__ assignment for classes with __slots__.
...
The old and the new class are still required to have the same slot
names, but the order in which they are specified is not relevant.
2007-03-16 11:59:38 +00:00
Georg Brandl
8844e438b1
Patch #1273829 : os.walk() now has a "followlinks" parameter. If set to
...
True (which is not the default), it visits symlinks pointing to
directories.
2007-03-16 08:22:40 +00:00
Georg Brandl
8f06d02935
Bug #1681228 : the webbrowser module now correctly uses the default
...
GNOME or KDE browser, depending on whether there is a session of one
of those present. Also, it tries the Windows default browser before
trying Mozilla variants.
(backport)
2007-03-16 07:55:09 +00:00
Collin Winter
77c67bd585
Patch #1642547 : Fix an error/crash when encountering syntax errors in complex if statements.
...
Will backport.
2007-03-16 04:11:30 +00:00
Žiga Seilnacht
20f43d3018
Patch #1462488 : prevent a segfault in object_reduce_ex() by splitting
...
the implementation for __reduce__ and __reduce_ex__ into two separate
functions. Fixes bug #931877 . Will backport.
2007-03-15 11:44:55 +00:00
Georg Brandl
ab1f4674ad
Patch #1681153 : the wave module now closes a file object it opened if
...
initialization failed.
2007-03-15 07:41:30 +00:00
Brett Cannon
ea2835a860
Raise ResourceDenied in test_urllib2net when the Net connection goes bad.
2007-03-14 21:44:15 +00:00
Martin v. Löwis
cd1210a55f
Patch #1559413 : Fix test_cmd_line if sys.executable contains a space.
...
Will backport.
2007-03-14 20:02:31 +00:00
Žiga Seilnacht
71436f0229
Patch #1680015 : Don't modify __slots__ tuple if it contains an unicode
...
name. Remove a reference leak that happened if the name could not be
converted to string. Will backport.
2007-03-14 12:24:09 +00:00
Georg Brandl
f66b6039c1
Bug #767111 : fix long-standing bug in urllib which caused an
...
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
2007-03-14 08:27:52 +00:00
Barry Warsaw
dcd24ae501
SF bug #1582282 ; decode_header() incorrectly splits not-conformant RFC
...
2047-like headers where there is no whitespace between encoded words. This
fix changes the matching regexp to include a trailing lookahead assertion that
the closing ?= must be followed by whitespace, newline, or end-of-string.
This also changes the regexp to add the MULTILINE flag.
2007-03-14 04:59:50 +00:00
Georg Brandl
4aef7275cb
Patch #1185447 : binascii.b2a_qp() now correctly quotes binary characters
...
with ASCII value less than 32. Also, it correctly quotes dots only if
they occur on a single line, as opposed to the previous behavior of
quoting dots if they are the second character of any line.
2007-03-13 22:49:43 +00:00
Georg Brandl
7e2b6bb24f
Patch #1194449 : correctly detect unbound methods in pydoc.
2007-03-13 22:16:30 +00:00
Georg Brandl
03b90d8cfd
Patch #957650 : "%var%" environment variable references are now properly
...
expanded in ntpath.expandvars(), also "~user" home directory references
are recognized and handled on Windows.
2007-03-13 22:07:36 +00:00
Georg Brandl
b6ae6aa8ac
Patch #1429539 : pdb now correctly initializes the __main__ module for
...
the debugged script, which means that imports from __main__ work
correctly now.
2007-03-13 21:58:44 +00:00
Georg Brandl
8044e5bbd4
Deprecate commands.getstatus().
2007-03-13 21:32:01 +00:00
Georg Brandl
8e84c65660
Patch #1393667 : pdb now has a "run" command which restarts the debugged
...
Python program, optionally with different arguments.
2007-03-13 21:08:15 +00:00
Georg Brandl
5240d7416c
Patch #1444529 : the builtin compile() now accepts keyword arguments.
...
(backport)
2007-03-13 20:46:32 +00:00
Thomas Heller
5dc4fe09b7
Patch #1649190 : Adding support for _Bool to ctypes as c_bool, by David Remahl.
2007-03-13 20:42:52 +00:00
Georg Brandl
8441f15626
Patch #1530482 : add pydoc.render_doc() which returns the documentation
...
for a thing instead of paging it to stdout, which pydoc.doc() does.
2007-03-13 20:02:57 +00:00
Georg Brandl
d9bef35e3c
Patch #1533909 : the timeit module now accepts callables in addition to
...
strings for the code to time and the setup code. Also added two
convenience functions for instantiating a Timer and calling its methods.
2007-03-13 19:32:21 +00:00
Georg Brandl
4168c0466f
Fix a tab.
2007-03-13 19:18:18 +00:00
Georg Brandl
35ef9c19fe
Patch #1537850 : tempfile.NamedTemporaryFile now has a "delete" parameter
...
which can be set to False to prevent the default delete-on-close
behavior.
2007-03-13 18:31:49 +00:00
Georg Brandl
6c104f6906
Patch #1605192 : list allowed states in error messages for imaplib.
2007-03-13 18:24:40 +00:00
Georg Brandl
9e6b47002a
Patch #1581073 : add a flag to textwrap that prevents the dropping of
...
whitespace while wrapping.
2007-03-13 18:15:41 +00:00
Georg Brandl
92a6baed7b
Patch #1603688 : ConfigParser.SafeConfigParser now checks values that
...
are set for invalid interpolation sequences that would lead to errors
on reading back those values.
2007-03-13 17:43:32 +00:00
Lars Gustäbel
a36cde4ccc
Quick fix for tests that fail on systems with an encoding other
...
than 'iso8859-1'.
2007-03-13 15:47:07 +00:00
Lars Gustäbel
c64e40215d
This is the implementation of POSIX.1-2001 (pax) format read/write
...
support.
The TarInfo class now contains all necessary logic to process and
create tar header data which has been moved there from the TarFile
class. The fromtarfile() method was added. The new path and linkpath
properties are aliases for the name and linkname attributes in
correspondence to the pax naming scheme.
The TarFile constructor and classmethods now accept a number of
keyword arguments which could only be set as attributes before (e.g.
dereference, ignore_zeros). The encoding and pax_headers arguments
were added for pax support. There is a new tarinfo keyword argument
that allows using subclassed TarInfo objects in TarFile.
The boolean TarFile.posix attribute is deprecated, because now three
tar formats are supported. Instead, the desired format for writing is
specified using the constants USTAR_FORMAT, GNU_FORMAT and PAX_FORMAT
as the format keyword argument. This change affects TarInfo.tobuf()
as well.
The test suite has been heavily reorganized and partially rewritten.
A new testtar.tar was added that contains sample data in many formats
from 4 different tar programs.
Some bugs and quirks that also have been fixed:
Directory names do no longer have a trailing slash in TarInfo.name or
TarFile.getnames().
Adding the same file twice does not create a hardlink file member.
The TarFile constructor does no longer need a name argument.
The TarFile._mode attribute was renamed to mode and contains either
'r', 'w' or 'a'.
2007-03-13 10:47:19 +00:00
Martin v. Löwis
bdd0f39de5
Patch #1449244 : Support Unicode strings in
...
email.message.Message.{set_charset,get_content_charset}.
Will backport.
2007-03-13 10:24:00 +00:00
Georg Brandl
18c47f6a3b
Patch #1569798 : fix a bug in distutils when building Python from a
...
directory within sys.exec_prefix.
2007-03-13 10:19:22 +00:00
Georg Brandl
b6a87542b3
Patch #1542681 : add entries for "with", "as" and "CONTEXTMANAGERS" to
...
pydoc's help keywords.
2007-03-13 10:06:48 +00:00
Georg Brandl
4ffc8f5107
Patch #1555098 : use str.join() instead of repeated string
...
concatenation in robotparser.
2007-03-13 09:41:31 +00:00
Georg Brandl
94fe3f58d0
Patch #1635454 : the csv.DictWriter class now includes the offending
...
field names in its exception message if you try to write a record with
a dictionary containing fields not in the CSV field names list.
2007-03-13 09:32:11 +00:00
Georg Brandl
ceede5c359
Patch #1668100 : urllib2 now correctly raises URLError instead of
...
OSError if accessing a local file via the file:// protocol fails.
2007-03-13 08:14:27 +00:00
Brett Cannon
09a86bc5ef
Fix a typo where the variable name was not updated.
2007-03-13 03:05:40 +00:00
Brett Cannon
41d4e32353
Add test.test_support.transient_internet . Returns a context manager that
...
nests test.test_support.TransientResource context managers that capture
exceptions raised when the Internet connection is flaky.
Initially using in test_socket_ssl but should probably be expanded to cover any
test that should not raise the captured exceptions if the Internet connection
works.
2007-03-13 02:34:09 +00:00
Tim Peters
ea5962f86e
Whitespace normalization.
2007-03-12 18:07:52 +00:00
Collin Winter
cb637c9ea3
Patch #1670993 : Refactor test_threadedtempfile.py to use unittest.
2007-03-12 17:24:07 +00:00
Collin Winter
276887b16d
Bug #742342 : make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167 .
...
Will backport.
2007-03-12 16:11:39 +00:00
Collin Winter
f567ca3e1a
Patch #1678088 : convert test_operations to use unittest, fold the result into test_dict.
2007-03-12 15:57:19 +00:00
Georg Brandl
871f1bc601
Backport from Py3k branch:
...
Patch #1591665 : implement the __dir__() special function lookup in PyObject_Dir.
Had to change a few bits of the patch because classobjs and __methods__ are still
in Py2.6.
2007-03-12 13:17:36 +00:00
Martin v. Löwis
2681beb23e
Patch #1677862 : Require a space or tab after import in .pth files.
2007-03-12 11:01:10 +00:00
Skip Montanaro
9cea8e5118
Sane humans would call these invalid tests, but Andrew McNamara pointed out
...
that given the inputs in these tests Excel does indeed produce the output
these tests expect. Document that for future confused folks.
2007-03-12 03:30:50 +00:00
Barry Warsaw
cbbc3f19c1
Tokio Kikuchi's fix for SF bug #1629369 ; folding whitespace allowed in the
...
display name of an email address, e.g.
Foo
\tBar <foo@example.com>
Test case added by Barry.
2007-03-12 03:20:01 +00:00
Collin Winter
071d1ae136
Patch #1678662 : ftp.python.org does not exist. So the testcode in urllib.py must use a more
...
stable FTP.
Will backport.
2007-03-12 01:55:54 +00:00
Vinay Sajip
a5e764873a
Fix resource leak reported in SF #1516995 .
2007-03-11 18:32:07 +00:00
Collin Winter
2faa9e1466
Patch #1192590 : Fix pdb's "ignore" and "condition" commands so they trap the IndexError caused by passing in an invalid breakpoint number.
...
Will backport.
2007-03-11 16:00:20 +00:00
Georg Brandl
b27831887f
Add missing "return" statements in exception handler.
2007-03-11 08:28:46 +00:00
Collin Winter
ae04106a0e
Patch #1599845 : Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer.
2007-03-10 14:41:48 +00:00
Collin Winter
3351aa7dd5
Convert an assert to a raise so it works even in the presence of -O.
2007-03-10 14:33:32 +00:00
Neal Norwitz
c8f6c23b0b
Simplify a little by handling the TCP case first.
...
Update to use predominant style of spaces around = in args list
and print to stderr if debugging.
2007-03-10 03:19:18 +00:00
Collin Winter
22c42ba88c
Bug #1531963 : Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket.
...
Will backport.
2007-03-10 02:51:26 +00:00
Collin Winter
dbead56cb6
* Unlink test files before and after each test; hopefully this will cut down on recent buildbot failures in test_islink.
...
* Drop safe_remove() in favor of test_support.unlink().
* Fix the indentation of test_samefile so that it runs.
2007-03-10 02:23:40 +00:00
Collin Winter
9453e5dce5
Hashing simplification pointed out by Thomas Wouters.
2007-03-09 23:30:39 +00:00
Thomas Heller
2456a3c02a
Bug #1651235 : When a tuple was passed to a ctypes function call,
...
Python would crash instead of raising an error.
The crash was caused by a section of code that should have been
removed long ago, at that time ctypes had other ways to pass
parameters to function calls.
2007-03-09 20:39:22 +00:00
Collin Winter
e38051db87
Patch #1491866 : change the complex() constructor to allow parthensized forms. This means complex(repr(x)) now works instead of raising a ValueError.
2007-03-09 20:33:07 +00:00
Thomas Heller
c2f7725c86
Fix bug #1646630 : ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
...
returned string up to the first NUL character.
2007-03-09 19:21:28 +00:00
Martin v. Löwis
1190a38d33
Patch #957003 : Implement smtplib.LMTP.
2007-03-09 15:35:55 +00:00
Collin Winter
83b2bf6d9a
Patch #1481079 : Support of HTTP_REFERER in CGIHTTPServer.py
2007-03-09 03:15:56 +00:00
Brett Cannon
a30fcb4dae
Introduce test.test_support.TransientResource. It's a context manager to
...
surround calls to resources that may or may not be available. Specifying the
expected exception and attributes to be raised if the resource is not available
prevents overly broad catching of exceptions.
This is meant to help suppress spurious failures by raising
test.test_support.ResourceDenied if the exception matches. It would probably
be good to go through the various network tests and surround the calls to catch
connection timeouts (as done with test_socket_ssl in this commit).
2007-03-08 23:58:11 +00:00
Collin Winter
9b2a109540
Patch #1668482 : don't use '-' in mkstemp
2007-03-08 22:16:25 +00:00
Raymond Hettinger
0e520b46ab
SF #1637850 : make_table in difflib did not work with unicode
2007-03-08 21:33:47 +00:00
Collin Winter
5545314ba7
Backported r54226 from p3yk: Move test_unittest, test_doctest and test_doctest2 higher up in the testing order.
2007-03-08 19:58:14 +00:00
Raymond Hettinger
8b188e6a49
SF 1676321: empty() returned wrong result
2007-03-08 19:24:27 +00:00
Guido van Rossum
f1200f8255
Windows doesn't support negative timestamps. Skip the tests involving them
...
if os.name == "nt".
2007-03-07 15:16:29 +00:00
Georg Brandl
d9e50261e8
Add some sanity checks to unittest.TestSuite's addTest(s) methods.
...
Fixes #878275 .
2007-03-07 11:54:49 +00:00
Georg Brandl
9decc0dc8b
Patch #1675471 : convert test_pty to unittest.
2007-03-07 11:37:42 +00:00
Martin v. Löwis
05c075d629
Bug #1115886 : os.path.splitext('.cshrc') gives now ('.cshrc', '').
2007-03-07 11:04:33 +00:00
Georg Brandl
d0a962506b
Patch #787789 : allow to pass custom TestRunner instances to unittest's
...
main() function.
2007-03-07 09:21:06 +00:00
Georg Brandl
15c5ce936f
Patches #1550273 , #1550272 : fix a few bugs in unittest and add a
...
comprehensive test suite for the module.
2007-03-07 09:09:40 +00:00
Georg Brandl
71ff646743
Patch #1001604 : glob.glob() now returns unicode filenames if it was
...
given a unicode argument and os.listdir() returns unicode filenames.
2007-03-07 08:31:51 +00:00
Georg Brandl
172e7257f6
Patch #812285 : allow multiple auth schemes in AbstractBasicAuthHandler.
2007-03-07 07:39:06 +00:00
Walter Dörwald
d391f0855c
Patch for bug #1633621 : if curses.resizeterm() or
...
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
2007-03-06 20:38:57 +00:00
Georg Brandl
40c626159d
Patch #1654417 : make operator.{get,set,del}slice use the full range
...
of Py_ssize_t.
2007-03-06 18:59:11 +00:00
Georg Brandl
00cd818dea
Patch #1638879 : don't accept strings with embedded NUL bytes in long().
2007-03-06 18:41:12 +00:00
Georg Brandl
cff1ae3a2f
Small nit, found by Neal.
2007-03-06 18:21:32 +00:00
Guido van Rossum
2054ee9b6f
Patch #1646728 : datetime.fromtimestamp fails with negative
...
fractional times. With unittest.
Somebody please backport to 2.5.
2007-03-06 15:50:01 +00:00
Martin v. Löwis
ab8a6bba25
Patch #912410 : Replace HTML entity references for attribute values
...
in HTMLParser.
2007-03-06 14:43:00 +00:00
Georg Brandl
ff432e6f4a
Patch #1663234 : you can now run doctest on test files and modules
...
using "python -m doctest [-v] filename ...".
2007-03-06 13:37:45 +00:00
Georg Brandl
72363031b9
A test case for the defaultdict KeyError bug.
2007-03-06 13:35:00 +00:00
Georg Brandl
d53d951c24
Patch #1672481 : fix bug in idlelib.MultiCall.
2007-03-06 11:52:24 +00:00
Georg Brandl
3071a1aec9
A test case for the fix in #1674228 .
2007-03-06 11:51:14 +00:00
Martin v. Löwis
3eb7648986
Patch #1121142 : Implement ZipFile.open.
2007-03-06 10:41:24 +00:00
Georg Brandl
0fca97a5fb
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
2007-03-05 22:28:08 +00:00
Facundo Batista
ca90ca81a4
Minor corrections to docs, and an explanation comentary
2007-03-05 16:31:54 +00:00
Georg Brandl
8905bb10e0
Fix a bug in test_dict and test_userdict, found at the PyPy sprint.
2007-03-04 17:18:54 +00:00
Raymond Hettinger
20e1199fbe
Fix embarrassing typo and fix constantification of None
2007-03-02 19:20:46 +00:00
Georg Brandl
117a05ed50
Bug #1628895 : some better tries to find HTML documentation in pydoc.
2007-03-02 14:37:12 +00:00
Raymond Hettinger
c37e5e04eb
Add collections.NamedTuple
2007-03-01 06:16:43 +00:00
Raymond Hettinger
eb9798892d
Prepare collections module for pure python code entries.
2007-02-28 18:37:52 +00:00
Raymond Hettinger
3035d2397f
Docstring nit.
2007-02-28 18:27:41 +00:00
Brett Cannon
f8267df2ad
Add a test for instantiating SyntaxError with no arguments.
2007-02-28 18:15:00 +00:00
Armin Rigo
adf172339c
Modify the segfaulting example to show why r53997 is not a solution to
...
it.
2007-02-28 09:25:29 +00:00
Jeremy Hylton
fa955697fa
Add checking for a number of metaclass error conditions.
...
We add some new rules that are required for preserving internal
invariants of types.
1. If type (or a subclass of type) appears in bases, it must appear
before any non-type bases. If a non-type base (like a regular
new-style class) occurred first, it could trick type into
allocating the new class an __dict__ which must be impossible.
2. There are several checks that are made of bases when creating a
type. Those checks are now repeated when assigning to __bases__.
We also add the restriction that assignment to __bases__ may not
change the metaclass of the type.
Add new tests for these cases and for a few other oddball errors that
were no previously tested. Remove a crasher test that was fixed.
Also some internal refactoring: Extract the code to find the most
derived metaclass of a type and its bases. It is now needed in two
places. Rewrite the TypeError checks in test_descr to use doctest.
The tests now clearly show what exception they expect to see.
2007-02-27 18:29:45 +00:00
Jeremy Hylton
37075c5ace
Fix long-standing bug in name mangling for package imports
...
Reported by Mike Verdone.
2007-02-27 01:01:59 +00:00
Neal Norwitz
88516a6039
When printing an unraisable error, don't print exceptions. before the name.
...
This duplicates the behavior whening normally printing exceptions.
2007-02-26 22:41:45 +00:00
Jeremy Hylton
759410b372
Do not copy free variables to locals in class namespaces.
...
Fixes bug 1569356, but at the cost of a minor incompatibility in
locals(). Add test that verifies that the class namespace is not
polluted. Also clarify the behavior in the library docs.
Along the way, cleaned up the dict_to_map and map_to_dict
implementations and added some comments that explain what they do.
2007-02-26 18:41:18 +00:00
Thomas Wouters
110054c053
Backported r51621 from p3yk:
...
Don't use a fixed temporary name (gdbm).
Don't use our own temp name creation (dbm).
Should be backported to 2.5.
2007-02-25 22:12:31 +00:00
Brett Cannon
6fbb96e69a
Refactor PEP 352 tests to make it easier in the future to make sure certain
...
things cannot be raised or caught.
2007-02-23 14:28:25 +00:00
Neal Norwitz
764cf7ed82
Fix typo in comment
2007-02-23 00:22:39 +00:00
Raymond Hettinger
d36862cf78
Add itertools.izip_longest().
2007-02-21 05:20:38 +00:00
Raymond Hettinger
cbac8ce5b0
Fixup docstrings for merge().
2007-02-19 18:15:04 +00:00
Martin v. Löwis
382abeff0f
Patch #1490190 : posixmodule now includes os.chflags() and os.lchflags()
...
functions on platforms where the underlying system calls are available.
2007-02-19 10:55:19 +00:00
Raymond Hettinger
01b9881062
Add test for merge stability
2007-02-19 07:30:21 +00:00
Raymond Hettinger
45eb0f1419
Use C heapreplace() instead of slower _siftup() in pure python.
2007-02-19 06:59:32 +00:00
Raymond Hettinger
54da9819cc
Add tie-breaker count to preserve sort stability.
2007-02-19 05:28:28 +00:00
Raymond Hettinger
00166c5532
Add merge() function to heapq.
2007-02-19 04:08:43 +00:00
Raymond Hettinger
d6fc72a5ae
Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().
2007-02-19 02:03:19 +00:00
Vinay Sajip
f7ccc101d2
Minor fix for currentframe (SF #1652788 ).
2007-02-16 22:36:24 +00:00
Brett Cannon
fa6521b4fd
Make the __import__ call in encodings.__init__ absolute with a level 0 call.
2007-02-16 19:33:01 +00:00
Brett Cannon
971a012ce1
Update the encoding package's search function to use absolute imports when
...
calling __import__. This helps make the expected search locations for encoding
modules be more explicit.
One could use an explicit value for __path__ when making the call to __import__
to force the exact location searched for encodings. This would give the most
strict search path possible if one is worried about malicious code being
imported. The unfortunate side-effect of that is that if __path__ was modified
on 'encodings' on purpose in a safe way it would not be picked up in future
__import__ calls.
2007-02-15 22:54:39 +00:00
Lars Gustäbel
d0b6040ced
A missing binary mode in AppendTest caused failures in Windows
...
Buildbot.
2007-02-14 14:45:12 +00:00
Lars Gustäbel
f19c1b5e0e
Strip the '.gz' extension from the filename that is written to the
...
gzip header.
2007-02-13 16:24:00 +00:00
Lars Gustäbel
5b1a785702
Patch #1647484 : Renamed GzipFile's filename attribute to name. The
...
filename attribute is still accessible as a property that emits a
DeprecationWarning.
2007-02-13 16:09:24 +00:00
Martin v. Löwis
84f6de9d7e
Patch #1517891 : Make 'a' create the file if it doesn't exist.
...
Fixes #1514451 .
2007-02-13 10:10:39 +00:00
Martin v. Löwis
c6d626ed9f
Patch #698833 : Support file decryption in zipfile.
2007-02-13 09:49:38 +00:00
Martin v. Löwis
07aa3ed372
Patch #685268 : Consider a package's __path__ in imputil.
...
Will backport.
2007-02-13 08:34:45 +00:00
Armin Rigo
b8d6d73121
Fix the line to what is my guess at the original author's meaning.
...
(The line has no effect anyway, but is present because it's
customary call the base class __init__).
2007-02-12 16:23:24 +00:00
Martin v. Löwis
2bad58f5a4
Patch 1463026: Support default namespace in XMLGenerator.
...
Fixes #847665 . Will backport.
2007-02-12 12:21:10 +00:00
Skip Montanaro
691acf2879
fix trace.py --ignore-dir
2007-02-11 18:24:37 +00:00
Martin v. Löwis
0a2032673c
Bug #1600860 : Search for shared python library in LIBDIR, not
...
lib/python/config, on "linux" and "gnu" systems.
Will backport.
2007-02-09 12:36:48 +00:00
Kurt B. Kaiser
209de1f6ca
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.
2007-02-08 22:58:18 +00:00