| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| | |
--without-doc-strings.
|
| | |
| |
| |
| | |
--without-doc-strings.
|
| | | |
|
| |\ \
| |/
| |
| |
| | |
TESTFN_UNDECODABLE, TESTFN_NONASCII of test.support from Python 3.4. Backport
tests on non-ASCII paths.
|
| | |
| |
| |
| |
| | |
TESTFN_NONASCII of test.support from Python 3.4. Backport tests on non-ASCII
paths.
|
| | | |
|
| | |
| |
| |
| | |
Patch from Serhiy Storchaka.
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
reliable. Patch by Jeremy Kloth
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
Patch by Serhiy Storchaka.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The leak occurred by setting:
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
before running test_support.
Patch by Brian Brazil.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Many functions now support "dir_fd" and "follow_symlinks" parameters;
some also support accepting an open file descriptor in place of of a path
string. Added os.support_* collections as LBYL helpers. Removed many
functions only previously seen in 3.3 alpha releases (often starting with
"f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka;
implemented by Larry Hastings.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.
I have also added skip_unless_xattr to __all__ where it has been missing.
|
| | |
| |
| |
| |
| | |
that it can be imported when threads are disabled.
(followup to issue #12098)
|
| | |
| |
| |
| | |
Initial patch by Sergey Mezentsev.
|
| | |
| |
| |
| | |
Patch by Serhiy Storchaka.
|
| | |
| |
| |
| | |
Patch by Hynek Schlawack.
|
| | |
| |
| |
| | |
Patch by Serhiy Storchaka.
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/
| |
| | |
the DST transition. Patch by Joe Peterson.
|
| | |
| |
| |
| | |
the DST transition. Patch by Joe Peterson.
|
| | | |
|
| | |
| |
| |
| |
| | |
up the decimal module. Performance gains of the new C implementation are
between 12x and 80x, depending on the application.
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
This helper was changed to work with any object instead of only modules
(or technically something with a __name__ attribute, see code in 3.2)
but the message stayed as is.
|
| | | |
|
| | |
| |
| |
| | |
memory watchdog for timely stats collection.
|
| |\ \
| |/
| |
| |
| | |
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
|
| | |
| |
| |
| |
| | |
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Windows does set the errno attribute to ENOENT, but the error message
displays the Windows error number (3 -> ERROR_PATH_NOT_FOUND), not the
errno number (2 -> ENOENT).
The Unix errno corresponding to 3 is ESRCH, explaining the confusion,
which can be seen in the following snippet:
>>> shutil.rmtree("foo")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "Z:\default\lib\shutil.py", line 272, in rmtree
onerror(os.listdir, path, sys.exc_info())
File "Z:\default\lib\shutil.py", line 270, in rmtree
names = os.listdir(path)
WindowsError: [Error 3] The system cannot find the path specified:
'foo\\*.*'
>>> e = sys.last_value
>>> e.errno
2
>>> e.winerror
3
>>> errno.errorcode[2]
'ENOENT'
For reference, see PC/errmap.h and
http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx
|
| |\ \
| |/
| |
| | |
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
|
| | |
| |
| |
| | |
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
* Replace sometimes sys.platform.startswith('linux') with
sys.platform == 'linux'
* sys.platform doesn't contain the major version on Cygwin on Mac OS X
(it's just 'cygwin' and 'darwin')
|
| |\ \
| |/
| |
| |
| |
| | |
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
|
| | |
| |
| |
| |
| |
| | |
with the `-m` (or `--match`) option. This works with all test cases
using the unittest module. This is useful with long test suites
such as test_io or test_subprocess.
|
| |\ \
| |/
| |
| |
| |
| | |
running in verbose mode (`-v` or `-W`), by using the `--failfast`
(or `-G`) option to regrtest. This is useful with long test suites
such as test_io or test_subprocess.
|
| | |
| |
| |
| |
| |
| | |
running in verbose mode (`-v` or `-W`), by using the `--failfast`
(or `-G`) option to regrtest. This is useful with long test suites
such as test_io or test_subprocess.
|
| | |
| |
| |
| | |
Based on original patch by Giampaolo Rodola with contributions from R. David Murray
|
| |\ \
| |/ |
|