summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* faulthandler: only log fatal exceptionsVictor Stinner2016-03-231-1/+1
| | | | | | | | Issue #23848, #26622: * faulthandler now only logs fatal Windows exceptions. * write error code as decimal, not as hexadecimal * replace "Windows exception" with "Windows fatal exception"
* regrtest: display test duration in sequential modeVictor Stinner2016-03-234-9/+29
| | | | Only display duration if a test takes more than 30 seconds.
* faulthandler: add Windows exception handlerVictor Stinner2016-03-231-13/+49
| | | | | | Issue #23848: On Windows, faulthandler.enable() now also installs an exception handler to dump the traceback of all Python threads on any Windows exception, not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
* regrtest: add timeout to main process when using -jNVictor Stinner2016-03-231-2/+11
| | | | | libregrtest: add a watchdog to run_tests_multiprocess() using faulthandler.dump_traceback_later().
* Add a source parameter to warnings.warn()Victor Stinner2016-03-2211-13/+21
| | | | | | | | Issue #26604: * Add a new optional source parameter to _warnings.warn() and warnings.warn() * Modify asyncore, asyncio and _pyio modules to set the source parameter when logging a ResourceWarning warning
* Issue #26588: remove debug traces from _tracemalloc.Victor Stinner2016-03-222-11/+0
|
* Issue #26588: skip test_warnings.test_tracemalloc()Victor Stinner2016-03-221-0/+1
|
* Issue #26588: add debug tracesVictor Stinner2016-03-221-0/+10
| | | | Try to debug random failure on buildbots.
* regrtest: add time to outputVictor Stinner2016-03-222-6/+19
| | | | | Timestamps should help to debug slow buildbots, and timeout and hang on buildbots.
* Add C functions _PyTraceMalloc_Track()Victor Stinner2016-03-221-0/+115
| | | | | | | | Issue #26530: * Add C functions _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() to track memory blocks using the tracemalloc module. * Add _PyTraceMalloc_GetTraceback() to get the traceback of an object.
* tracemalloc now supports domainsVictor Stinner2016-03-222-45/+132
| | | | | | | | | | | | | | | | | Issue #26588: * The _tracemalloc now supports tracing memory allocations of multiple address spaces (domains). * Add domain parameter to tracemalloc_add_trace() and tracemalloc_remove_trace(). * tracemalloc_add_trace() now starts by removing the previous trace, if any. * _tracemalloc._get_traces() now returns a list of (domain, size, traceback_frames): the domain is new. * Add tracemalloc.DomainFilter * tracemalloc.Filter: add an optional domain parameter to the constructor and a domain attribute * Sublte change: use Py_uintptr_t rather than void* in the traces key. * Add tracemalloc_config.use_domain, currently hardcoded to 1
* Fix test_ssl.test_refcycle()Victor Stinner2016-03-211-1/+1
| | | | | | Issue #26590: support.check_warnings() stores warnins, but ResourceWarning now comes with a reference to the socket object which indirectly keeps the socket alive.
* Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-205-5/+5
|\
| * Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-205-5/+5
| |
* | Issues #25643, #26581: Added new tests for detecting Python source code ↵Serhiy Storchaka2016-03-201-2/+81
|\ \ | |/ | | | | encoding.
| * Added new tests for detecting Python source code encoding.Serhiy Storchaka2016-03-201-2/+81
| |
* | Issue #12813: uuid.uuid4() no longer depends on ctypesBerker Peksag2016-03-201-1/+0
|\ \ | |/ | | | | uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
| * Issue #12813: uuid.uuid4() no longer depends on ctypesBerker Peksag2016-03-201-1/+0
| | | | | | | | uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
* | Issue #19164: Improve exception message of uuid.UUID()Berker Peksag2016-03-201-1/+2
|\ \ | |/ | | | | Patch by jgauthier.
| * Issue #19164: Improve exception message of uuid.UUID()Berker Peksag2016-03-201-1/+2
| | | | | | | | Patch by jgauthier.
* | Issue #19265: Improve test coverage of datetime.tzinfoBerker Peksag2016-03-191-0/+3
|\ \ | |/ | | | | | | | | | | Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
| * Issue #19265: Improve test coverage of datetime.tzinfoBerker Peksag2016-03-191-0/+3
| | | | | | | | | | | | | | Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
* | Issue #18787: spwd.getspnam() now raises a PermissionError if the userBerker Peksag2016-03-191-0/+10
| | | | | | | | doesn't have privileges.
* | Try again to fix test_warnings on WindowsVictor Stinner2016-03-191-0/+2
| | | | | | | | Issue #26567: normalize newlines in test_tracemalloc.
* | Issue #26560: Avoid potential ValueError in BaseHandler.start_responseBerker Peksag2016-03-192-1/+22
|\ \ | |/ | | | | Initial patch by Peter Inglesby.
| * Issue #26560: Avoid potential ValueError in BaseHandler.start_responseBerker Peksag2016-03-192-1/+22
| | | | | | | | Initial patch by Peter Inglesby.
* | Try to fix test_warnings on WindowsVictor Stinner2016-03-191-8/+10
| | | | | | | | Issue #26567.
* | Fix test_loggingVictor Stinner2016-03-191-27/+33
| | | | | | | | | | Issue #26568: Fix implementation of showwarning() and formatwarning() for test_logging.
* | On ResourceWarning, log traceback where the object was allocatedVictor Stinner2016-03-192-4/+48
| | | | | | | | | | | | | | | | | | | | Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated.
* | Add _showwarnmsg() and _formatwarnmsg() to warningsVictor Stinner2016-03-182-16/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26568: add new _showwarnmsg() and _formatwarnmsg() functions to the warnings module. The C function warn_explicit() now calls warnings._showwarnmsg() with a warnings.WarningMessage as parameter, instead of calling warnings.showwarning() with multiple parameters. _showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was replaced.
* | Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store ↵Steve Dower2016-03-171-1/+2
|\ \ | |/ | | | | is empty. Patch by Baji.
| * Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store ↵Steve Dower2016-03-171-1/+2
| | | | | | | | is empty. Patch by Baji.
* | Issue #26583: merge from 3.5Ned Deily2016-03-171-0/+1
|\ \ | |/
| * Issue #26583: Skip test_timestamp_overflow in test_import if bytecodeNed Deily2016-03-171-0/+1
| | | | | | | | files cannot be written.
* | Merge 3.5 into defaultDonald Stufft2016-03-173-2/+2
|\ \ | |/
| * Merge 3.4 into 3.5Donald Stufft2016-03-173-2/+2
| |\
| | * Upgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3Donald Stufft2016-03-173-2/+2
| | |
* | | Merge 3.5Victor Stinner2016-03-171-3/+5
|\ \ \ | |/ /
| * | Fix pyclbr to support importing packagesVictor Stinner2016-03-171-3/+5
| | | | | | | | | | | | | | | Issue #26569: Fix pyclbr.readmodule() and pyclbr.readmodule_ex() to support importing packages.
* | | faulthandler now works in non-Python threadsVictor Stinner2016-03-161-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26563: * Add _PyGILState_GetInterpreterStateUnsafe() function: the single PyInterpreterState used by this process' GILState implementation. * Enhance _Py_DumpTracebackThreads() to retrieve the interpreter state from autoInterpreterState in last resort. The function now accepts NULL for interp and current_tstate parameters. * test_faulthandler: fix a ResourceWarning when test is interrupted by CTRL+c
* | | Fail if PyMem_Malloc() is called without holding the GILVictor Stinner2016-03-161-4/+13
| | | | | | | | | | | | | | | Issue #26563: Debug hooks on Python memory allocators now raise a fatal error if functions of the PyMem_Malloc() family are called without holding the GIL.
* | | Issue #21042: Revert Linux find_library() to return just filenameMartin Panter2016-03-172-25/+17
| | | | | | | | | | | | | | | | | | This reverts most of revision 3092cf163eb4. The change worked on x86 architectures, but did not work on ARM, probably due to extra ABI flags in the ldconfig output.
* | | Issue #26499: Merge HTTPResponse fix from 3.5Martin Panter2016-03-172-9/+78
|\ \ \ | |/ /
| * | Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent GhostMartin Panter2016-03-172-9/+78
| | |
* | | regrtest: Fix module.__path__Victor Stinner2016-03-152-2/+5
| | | | | | | | | | | | | | | | | | | | | Issue #26538: libregrtest: Fix setup_tests() to keep module.__path__ type (_NamespacePath), don't convert to a list. Add _NamespacePath.__setitem__() method to importlib._bootstrap_external.
* | | Issue #26564: Fix test_capiVictor Stinner2016-03-151-0/+2
| | |
* | | Merge 3.5 (test_faulthandler)Victor Stinner2016-03-151-0/+8
|\ \ \ | |/ /
| * | faulthandler: Test Py_FatalError() with GIL releasedVictor Stinner2016-03-151-0/+8
| | | | | | | | | | | | Issue #26558.
* | | Issue #26566: Rewrite test_signal.InterProcessSignalTestsVictor Stinner2016-03-152-162/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Lib/test/signalinterproctester.py * Don't disable the garbage collector anymore * Don't use os.fork() with a subprocess to not inherit existing signal handlers or threads: start from a fresh process * Don't use UNIX kill command to send a signal but Python os.kill() * Use a timeout of 10 seconds to wait for the signal instead of 1 second * Always use signal.pause(), instead of time.wait(1), to wait for a signal * Use context manager on subprocess.Popen * remove code to retry on EINTR: it's no more needed since the PEP 475 * remove unused function exit_subprocess() * Cleanup the code
* | | Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) ↵Antoine Pitrou2016-03-151-9/+16
|\ \ \ | |/ / | | | | | | was untested.