| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
connection with an optional timeout, and modified httplib.py to
use this function in HTTPConnection. Applies patch 1676823.
|
| |
|
|
|
|
| |
now be unpickled. Will backport.
|
| |
|
|
|
|
| |
masked by a generic one with the message "unpack non-sequence".
|
|
|
|
| |
calls and fixing set/dict interoperability.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
files that may exist but cause the test to fail). Should be backported (assuming it works :-)
|
|
|
|
| |
files that may exist but cause the test to fail). Should be backported (assuming it works :-)
|
|
|
|
|
| |
buildbots. This rev was backported, so we will need to keep both branches
in sync, pending the outcome of the test after this checkin.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
True (which is not the default), it visits symlinks pointing to
directories.
|
|
|
|
|
|
| |
complex if statements.
Will backport.
|
|
|
|
|
| |
the implementation for __reduce__ and __reduce_ex__ into two separate
functions. Fixes bug #931877. Will backport.
|
| |
|
|
|
|
| |
Will backport.
|
|
|
|
|
| |
name. Remove a reference leak that happened if the name could not be
converted to string. Will backport.
|
|
|
|
|
| |
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
expanded in ntpath.expandvars(), also "~user" home directory references
are recognized and handled on Windows.
|
|
|
|
| |
(backport)
|
| |
|
|
|
|
|
| |
which can be set to False to prevent the default delete-on-close
behavior.
|
|
|
|
| |
whitespace while wrapping.
|
|
|
|
|
| |
are set for invalid interpolation sequences that would lead to errors
on reading back those values.
|
|
|
|
| |
than 'iso8859-1'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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'.
|
|
|
|
| |
OSError if accessing a local file via the file:// protocol fails.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
Fixed by patch #922167.
Will backport.
|
|
|
|
| |
into test_dict.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
that given the inputs in these tests Excel does indeed produce the output
these tests expect. Document that for future confused folks.
|
| |
|
| |
|
|
|
|
|
|
| |
to calling getsockname() on the server's socket.
Will backport.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
forms. This means complex(repr(x)) now works instead of raising a ValueError.
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
test_doctest2 higher up in the testing order.
|