| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
|
|
|
|
|
|
| |
Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.
|
|
|
|
|
| |
Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.
|
|
|
|
| |
variables, start with an empty environment.
|
|
|
|
| |
processes if negative or null.
|
| |
|
|
|
|
|
|
|
|
| |
Analogous to the decode_header fix, this fix makes Header.append and
make_header correctly handle the unknown-8bit charset introduced by email5.1,
when the input to them is binary strings. Previous to this fix the
make_header(decode_header(x)) == x invariant was broken in the face of the
unknown-8bit charset.
|
|
|
|
| |
This updates b21fdfa0019c, which fixed this bug incorrectly.
|
|
|
|
| |
This makes them work like the close provided by regular file objects.
|
|
|
|
|
|
|
|
| |
All of the other methods in mailbox that create message objects take care to
close the file descriptors they use, so it seems to make sense to have
__getitem__ do so as well.
Patch by Filip Gruszczyński.
|
| |
|
|
|
|
|
|
| |
AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.
|
|
|
|
|
|
|
|
|
| |
multiprocessing: Process._bootstrap() keeps a reference to the old process to
delay its finalization until after _run_after_forkers() as been executed. This
change should fix a crash on Mac OS X Tiger when a lock is released after a
fork.
Patch written by Charles-François Nataliv and Antoine Pitrou.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This allows findsource() to work in doctests.
A patch from Dirkjan Ochtman.
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Just try to open files from the ZIP for reading, don't extract them to avoid
UnicodeEncodeError if the filename is not encodable to the filesystem encoding
(e.g. ASCII locale encoding).
|
| | | |
|
| | | |
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | | |
Original fix by 'rep', final patch (with tests) by Xuanji Li.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I unfortunately introduced the regression when I refactored the code,
and there were no tests of quoting so it wasn't caught. Now there
is one.
|
| | | |
| | | |
| | | |
| | | | |
using a new 'append_nul' attribute on the handler.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use of DeviceIoControl to obtain the symlink path via the reparse tag was
removed. The code now uses GetFinalPathNameByHandle in the case of a
symbolic link and works properly given the added test which creates a symbolic
link and calls os.stat on it from multiple locations.
Victor Stinner also noticed an issue with os.lstat following the os.stat
code path when being passed bytes. The posix_lstat function was adjusted to
properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
|
|\ \ \ |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | | |
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
descriptor of a pipe closed in the parent process is valid in the child process
according to fstat(), but the mode of the file descriptor is invalid, and read
or write raise an error.
Add also requires_mac_ver() decorator to test.support.
|
| | |
| | |
| | |
| | |
| | | |
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
|
| | |
| | |
| | |
| | | |
iso2022_jp, iso2022_jp_2 and iso2022_kr
|
|\ \ \ |
|
| |\ \ \
| | | |/
| | |/| |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The tests now pass all combinations of -O/-OO and -B. See also #7071
and #6292 for previous variations on the same theme.
test_versionpredicate needs a skip when sys.flags.optimize is true, but
I don’t know how to make that work with a DocTestSuite.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
|
|\ \ \ \
| | |_|/
| |/| |
| | | | |
Patch by Mher Movsisyan.
|
| | | |
| | | |
| | | |
| | | | |
Patch by Mher Movsisyan.
|
|\ \ \ \
| |/ / /
| | / /
| |/ /
|/| |
| | | |
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
|
| |/
| |
| |
| |
| |
| | |
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
|
| |\ |
|
|\ \ \ |
|
| |\ \ \
| | | |/
| | |/| |
|
| | |\ \ |
|
| | | | | |
|
| | | | | |
|