| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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"
|
|
|
|
| |
Only display duration if a test takes more than 30 seconds.
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
libregrtest: add a watchdog to run_tests_multiprocess() using
faulthandler.dump_traceback_later().
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
Try to debug random failure on buildbots.
|
|
|
|
|
| |
Timestamps should help to debug slow buildbots, and timeout and hang on
buildbots.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Issue #26590: support.check_warnings() stores warnins, but ResourceWarning now
comes with a reference to the socket object which indirectly keeps the socket
alive.
|
|\ |
|
| | |
|
|\ \
| |/
| |
| | |
encoding.
|
| | |
|
|\ \
| |/
| |
| | |
uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
|
| |
| |
| |
| | |
uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
|
|\ \
| |/
| |
| | |
Patch by jgauthier.
|
| |
| |
| |
| | |
Patch by jgauthier.
|
|\ \
| |/
| |
| |
| |
| |
| | |
Without the patch, line 1010 of Lib/datetime.py wasn't covered
by the test suite.
Patch by Colin Williams.
|
| |
| |
| |
| |
| |
| |
| | |
Without the patch, line 1010 of Lib/datetime.py wasn't covered
by the test suite.
Patch by Colin Williams.
|
| |
| |
| |
| | |
doesn't have privileges.
|
| |
| |
| |
| | |
Issue #26567: normalize newlines in test_tracemalloc.
|
|\ \
| |/
| |
| | |
Initial patch by Peter Inglesby.
|
| |
| |
| |
| | |
Initial patch by Peter Inglesby.
|
| |
| |
| |
| | |
Issue #26567.
|
| |
| |
| |
| |
| | |
Issue #26568: Fix implementation of showwarning() and formatwarning() for
test_logging.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| | |
is empty. Patch by Baji.
|
| |
| |
| |
| | |
is empty. Patch by Baji.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
files cannot be written.
|
|\ \
| |/ |
|
| |\ |
|
| | | |
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | | |
Issue #26569: Fix pyclbr.readmodule() and pyclbr.readmodule_ex() to support
importing packages.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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 #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 #26558.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
|\ \ \
| |/ /
| | |
| | | |
was untested.
|