summaryrefslogtreecommitdiff
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* support: temp_dir() and change_cwd() uses repr() in error messageVictor Stinner2017-02-082-5/+5
| | | | | Serhiy Storshaka pointed me that str(path) can emit a BytesWarning: use repr(path) instead.
* Fix regrtest -j0 -R outputVictor Stinner2017-02-081-1/+1
| | | | Write also dots into stderr, instead of stdout.
* Update test_support for my temp_dir/change_cwd changesVictor Stinner2017-02-082-6/+19
|
* support: add more info on temp_dir() and change_cwd() failureVictor Stinner2017-02-081-4/+6
| | | | Log the OSError exception message.
* Issue #28164: Improves test on Windows 7Steve Dower2017-02-061-16/+22
|\
| * Issue #28164: Improves test on Windows 7Steve Dower2017-02-061-16/+22
| |
* | regrtest: don't fail immediately if a child does crashVictor Stinner2017-02-063-6/+16
| | | | | | | | | | | | Issue #29362: Catch a crash of a worker process as a normal failure and continue to run next tests. It allows to get the usual test summary: single line result (OK/FAIL), total duration, etc.
* | Merge from 3.6Steve Dower2017-02-0468-701/+474
|\ \ | |/ |/|
| * Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)Steve Dower2017-02-041-13/+27
| |\
| * \ Merge issue #28164 and issue #29409Steve Dower2017-02-042-2/+46
| |\ \
| * \ \ Issue #29416: Prevent infinite loop in pathlib.Path.mkdirSteve Dower2017-02-041-0/+11
| |\ \ \
| * \ \ \ Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-0468-701/+474
| |\ \ \ \ | | | | | | | | | | | | | | | | | | the match object. Based on patch by WGH.
| | * | | | Issue #29263: LOAD_METHOD support for C methodsINADA Naoki2017-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Calling builtin method is at most 10% faster.
| | * | | | Closes #24875: Merged fix from 3.6.Vinay Sajip2017-02-0268-701/+474
| | |\ \ \ \
| | | * | | | Rename struct.unpack() 2nd parameter to "buffer"Victor Stinner2017-02-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29300: Rename struct.unpack() second parameter from "inputstr" to "buffer", and use the Py_buffer type. Fix also unit tests on struct.unpack() which passed a Unicode string instead of a bytes string as struct.unpack() second parameter. The purpose of test_trailing_counter() is to test invalid format strings, not to test the buffer parameter.
| | | * | | | Issue #29300: Convert _struct module to Argument ClinicVictor Stinner2017-02-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The struct module now requires contiguous buffers. * Convert most functions and methods of the _struct module to Argument Clinic * Use "Py_buffer" type for the "buffer" argument. Argument Clinic is responsible to create and release the Py_buffer object. * Use "PyStructObject *" type for self to avoid explicit conversions. * Add an unit test on the _struct.Struct.unpack_from() method to test passing arguments as keywords. * Rephrase docstrings. * Rename "fmt" argument to "format" in docstrings and the documentation. As a side effect, functions and methods which used METH_VARARGS calling convention like struct.pack() now use the METH_FASTCALL calling convention which avoids the creation of temporary tuple to pass positional arguments and so is faster. For example, struct.pack("i", 1) becomes 1.56x faster (-36%):: $ ./python -m perf timeit \ -s 'import struct; pack=struct.pack' 'pack("i", 1)' \ --compare-to=../default-ref/python Median +- std dev: 119 ns +- 1 ns -> 76.8 ns +- 0.4 ns: 1.56x faster (-36%) Significant (t=295.91) Patch co-written with Serhiy Storchaka.
| | | * | | | Issue #29377: Add three new wrappers to types.py (Manuel Krebber).Guido van Rossum2017-02-011-0/+18
| | | | | | |
| | | * | | | Fix test_gdb.test_wrapper_call() on Python 2Victor Stinner2017-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367. On Python 2, __init__ name is render as u'__init__'.
| | | * | | | Make test_gdb.test_wrapper_call() make reliableVictor Stinner2017-02-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367. Use two break points to prevent breakpoint during Python initialization.
| | | * | | | python-gdb.py supports method-wrapperVictor Stinner2017-02-011-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29367: python-gdb.py now supports also method-wrapper (wrapperobject) objects.
| | | * | | | issue29167: fix race condition in (Int)FlagEthan Furman2017-01-241-2/+88
| | | |\ \ \ \
| | | * \ \ \ \ Issue #29337: Fixed possible BytesWarning when compare the code objects.Serhiy Storchaka2017-01-2466-697/+434
| | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Warnings could be emitted at compile time.
| | | | * | | | | Issue #29338: Fix test_enum.Serhiy Storchaka2017-01-241-0/+4
| | | | | | | | |
| | | | * | | | | Issues #29273: Merge test___all__ from 3.6Martin Panter2017-01-231-11/+0
| | | | |\ \ \ \ \
| | | | * \ \ \ \ \ Skip the test requiring ctypes if ctypes is unavailable.Gregory P. Smith2017-01-221-1/+6
| | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
| | | | * \ \ \ \ \ \ typo fix, extra '.' on MacOS :)Gregory P. Smith2017-01-221-1/+1
| | | | |\ \ \ \ \ \ \
| | | | * \ \ \ \ \ \ \ Issue #28556: Allow defining methods in NamedTuple class syntax (#362) ↵Guido van Rossum2017-01-2265-697/+430
| | | | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (3.6->3.7)
| | | | | * \ \ \ \ \ \ \ Issue #28556: various style fixes for typing.py (3.6->3.7)Guido van Rossum2017-01-221-10/+21
| | | | | |\ \ \ \ \ \ \ \
| | | | | * \ \ \ \ \ \ \ \ Issue #29335: Fix subprocess.Popen.wait() when the child process hasGregory P. Smith2017-01-2265-697/+430
| | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exited to a stopped instead of terminated state (ex: when under ptrace).
| | | | | | * \ \ \ \ \ \ \ \ Issue #29290: Merge 3.6.Xiang Zhang2017-01-221-0/+17
| | | | | | |\ \ \ \ \ \ \ \ \
| | | | | | * | | | | | | | | | Issue #29282: Backed out changeset b33012ef1417Mark Dickinson2017-01-211-234/+0
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Issue #29282: add fused multiply-add function, math.fma.Mark Dickinson2017-01-211-0/+234
| | | | | | | | | | | | | | | |
| | | | | | * | | | | | | | | | Issue #29327: Fixed a crash when pass the iterable keyword argument to sorted().Serhiy Storchaka2017-01-201-0/+10
| | | | | | |\ \ \ \ \ \ \ \ \ \
| | | | | | * \ \ \ \ \ \ \ \ \ \ Issue #29198: add AsyncGenerator (Jelle Zijlstra) (3.6->3.7)Guido van Rossum2017-01-1865-697/+430
| | | | | | |\ \ \ \ \ \ \ \ \ \ \
| | | | | | | * | | | | | | | | | | Update and enhance python-gdb.pyVictor Stinner2017-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #29259: * Detect PyCFunction is the current frame, not only in the older frame * Ignore PyCFunction_Call() since it now calls _PyCFunction_FastCallDict(), and _PyCFunction_FastCallDict() is already detected
| | | | | | | * | | | | | | | | | | Issue #28556: allow default values in class form of NamedTuple -- Jelle ↵Guido van Rossum2017-01-181-0/+26
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Zijlstra (3.6->3.7)
| | | | | | | * \ \ \ \ \ \ \ \ \ \ \ Issue #28556: merge 5 more typing changes from upstream (#340, #344, #348, ↵Guido van Rossum2017-01-1764-696/+429
| | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #349, #350) (3.6->3.7)
| | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ mergeRaymond Hettinger2017-01-161-0/+11
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ Closes #29132: Merged fix from 3.6.Vinay Sajip2017-01-1564-696/+429
| | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ Issue #29145: Merge test from 3.6Martin Panter2017-01-1464-696/+429
| | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | * | | | | | | | | | | | | Issue #29197: Removed deprecated function ntpath.splitunc().Serhiy Storchaka2017-01-131-24/+1
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | * | | | | | | | | | | | | Issue #29210: Removed support of deprecated argument "exclude" inSerhiy Storchaka2017-01-131-27/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tarfile.TarFile.add().
| | | | | | | | | | * | | | | | | | | | | | | Issue #29192: Removed deprecated features in the http.cookies module.Serhiy Storchaka2017-01-131-15/+7
| | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | * | | | | | | | | | | | | Issue #29193: A format string argument for string.Formatter.format()Serhiy Storchaka2017-01-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is now positional-only.
| | | | | | | | | | * | | | | | | | | | | | | Issue #28969: Fixed race condition in C implementation of functools.lru_cache.Serhiy Storchaka2017-01-121-0/+15
| | | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KeyError could be raised when cached function with full cache was simultaneously called from differen threads with the same uncached arguments.
| | | | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ Merge 3.6Victor Stinner2017-01-1260-627/+421
| | | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ Issue #29220: Merged fixes from 3.6.Vinay Sajip2017-01-1160-627/+421
| | | | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | * | | | | | | | | | | | | | Closes #29220: Fixed regression in logging.getLevelName().Vinay Sajip2017-01-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | * | | | | | | | | | | | | | Closes #29177: Merged fix from 3.6.Vinay Sajip2017-01-091-24/+62
| | | | | | | | | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | * | | | | | | | | | | | | | | Add test for ea064ff3c10fRaymond Hettinger2017-01-091-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | |