sobolevn
90c1d86f34
gh-149609: Raise deprecation warnings for abc.{abstractclassmethod,abstractstaticmethod,abstractproperty} ( #149636 )
2026-05-31 07:26:52 +00:00
Brij Kapadia
f586fd9e30
gh-144774: Add critical section in BaseException.__setstate__ ( #150578 )
2026-05-30 21:07:27 +05:30
Fang Li
6ecd197c03
gh-109503: Fix document for shutil.move() on usage of os.rename() since it's inaccurate (GH-109507)
...
Nonatomic move might be used even if the files are
on the same filesystem in some cases.
2026-05-30 14:26:03 +00:00
Tomi Belan
6d7a19e533
gh-121109: Fix performance of tarfile reading with "r|*" (GH-121296)
2026-05-30 09:23:50 +00:00
Serhiy Storchaka
1c7011d8fe
gh-150560: Fix crash in XML parser on invalid XML with multi-byte encoding (GH-150568)
2026-05-30 00:23:32 +03:00
Serhiy Storchaka
bcd29e466f
gh-149489: Fix ElementTree serialization to HTML (GH-149490)
...
* The content of comments, processing instructions and elements "xmp",
"iframe", "noembed", "noframes", and "plaintext" is no longer escaped.
* The "plaintext" element no longer have the closing tag.
* Add support of empty attributes (with value None).
2026-05-30 00:04:50 +03:00
Thomas Kowalski
f87d9605d3
gh-149056: Properly pass array_hook in json.load() to json.loads() (GH-149057)
2026-05-29 22:53:21 +03:00
esadomer
26696a65f9
gh-132372: Speed up logging.config existing logger handling (GH-150242)
...
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2026-05-29 16:50:05 +01:00
kodsurfer
6ac4dc8fc9
gh-150345: Fix incorrect reference in BaseSelectorEventLoop docstring ( #150538 )
2026-05-29 15:24:58 +05:30
Grant Herman
c72d5ea638
gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset ( #150270 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-29 15:10:57 +05:30
Bartosz Sławecki
1d4e965829
gh-148587: Make sys.lazy_modules match PEP and keep internal lazy submodules tracking internal ( #150086 )
...
Make sys.lazy_modules match PEP and keep internal lazy submodules tracking internal
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
2026-05-28 17:55:47 -07:00
Rafael Weingartner-Ortner
baf11a4e9a
gh-139398: [Enum] Add supported sunder names to __dir__ for REPL completions (GH-139985)
...
* Add supported sunder names to Enum `__dir__`
This change adds the sunder names `_generate_next_value_`
and `_missing_` to the `__dir__` method of `EnumType` and `Enum`.
In Addition, The instance level sunder names
`_add_alias_` and `_add_value_alias_` are added to `Enum.__dir__`.
With the sunder names exposed in the `dir()` method,
the REPL autocomplete will also show them.
---------
Co-authored-by: SimonGPrs <107691772+SimonGPrs@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2026-05-28 12:55:38 -07:00
Pradyun Gedam
ef2246f788
gh-150046: Fix test_add_python_opts to ignore PYTHON* env vars ( #150089 )
...
Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various PYTHON environment variables.
2026-05-28 18:48:51 +02:00
Chien Wong
cf2cd0be82
gh-115988: Add ARM64 and RISCV BCJ filters constants in lzma module (GH-115989)
...
---------
Signed-off-by: Chien Wong <m@xv97.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-28 08:05:03 -07:00
Sergey B Kirpichev
b6bae536ef
gh-85989: Add skip_if_double_rounding to test.support ( #150219 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-28 13:42:39 +02:00
Serhiy Storchaka
24c6bbc92b
gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091)
...
Preserve non-UTF-8 filenames when appending to a ZipFile.
---------
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-27 17:56:38 +00:00
Pablo Galindo Salgado
638754cb85
gh-150389: Make perf profiler tests resilient ( #150437 )
2026-05-27 13:22:56 +01:00
Serhiy Storchaka
7de4fcd445
gh-149571: Fix the C implementation of Element.itertext() (GH-149929)
...
It no longer emits text for comments and processing instructions.
2026-05-27 13:23:28 +03:00
Victor Stinner
776573c9f0
gh-149879: Fix test_grp on Cygwin ( #150495 )
2026-05-26 21:16:16 +00:00
Serhiy Storchaka
8ab7b43a14
gh-62259: Add support of multi-byte encodings in the XML parser (GH-149860)
...
Supported encodings: "cp932", "cp949", "cp950", "Big5","EUC-JP",
"GB2312", "GBK", "johab", and "Shift_JIS".
Partially supported encodings (only BMP characters): "Big5-HKSCS",
"EUC_JIS-2004", "EUC_JISX0213", "Shift_JIS-2004", "Shift_JISX0213",
"utf-8-sig" and non-standard aliases like "UTF8" (without hyphen).
The parser now raises ValueError for known unsupported
multi-byte encodings such us "ISO-2022-JP" or "raw-unicode-escape"
instead of failing later, when encounter non-ASCII data.
2026-05-26 19:40:25 +00:00
deadlovelll
a34edf7446
gh-150486: Remove dead _buffer_factory attribute from _SelectorDatagramTransport ( #150487 )
2026-05-27 00:37:27 +05:30
Serhiy Storchaka
5e467f4331
gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in email (GH-149959)
2026-05-26 21:52:47 +03:00
Victor Stinner
90bf681df1
gh-149879: Fix test_embed on Cygwin ( #150441 )
2026-05-26 16:33:08 +00:00
Victor Stinner
bc235304df
gh-149879: Fix test_venv on Cygwin ( #150483 )
...
In copy mode, venv now also copies the cygpython DLL.
Fix test_zippath_from_non_installed_posix(): copy also the cygpython
DLL.
2026-05-26 18:32:13 +02:00
Mark Shannon
a6793662e7
GH-126910: Make _Py_get_machine_stack_pointer return the actual stack pointer (GH-149103)
...
* Make _Py_ReachedRecursionLimit inline again
* Remove _Py_MakeRecCheck replacing its use with _Py_ReachedRecursionLimit
* Move the check for C stack swtiching into _Py_CheckRecursiveCall
2026-05-26 15:14:17 +01:00
Petr Viktorin
d8a97cb65c
gh-139310: Revert test skip for test_aead_aes_gcm (GH-139552) (GH-149687)
...
This reverts commit 41712c4e09 .
Anyone running tests on a kernel with the bug will now see a failure.
2026-05-26 14:36:36 +02:00
Victor Stinner
b87c99158c
gh-149879: Fix test_math and test_statistics on Cygwin ( #150432 )
...
* Skip tests which fail on Cygwin: when Python is linked to
the newlib C library.
* Rename test_random() to test_fma_random().
* Move tests on large integer values from testLog2() to
testLog2Exact().
2026-05-26 02:39:22 +00:00
Victor Stinner
f500e4e351
gh-149879: Fix test_strptime on Cygwin ( #150438 )
...
Skip my_MM and or_IN locales on multiple tests, since the tests fail
on Cygwin.
2026-05-26 04:25:07 +02:00
Victor Stinner
bc67dadb1b
gh-149879: Fix multiprocessing resource tracker tests on Cygwin ( #150440 )
...
Skip test_resource_tracker_sigterm() if signal.pthread_sigmask() is
missing.
2026-05-26 04:23:52 +02:00
Pablo Galindo Salgado
a5be25d3bd
gh-149619: Harden _remote_debugging error paths ( #150349 )
2026-05-25 23:22:46 +01:00
Victor Stinner
5ab1e8693f
gh-149879: Fix test_ftplib on Cygwin ( #150431 )
...
Skip test_abort() since MSG_OOB doesn't work properly on Cygwin. The
server gets b'\n' and then b'ABOR\r', instead of getting b'ABOR\r\n'.
2026-05-26 00:09:41 +02:00
Victor Stinner
cb60f48ed8
gh-150114: Use get_process_memory_usage() in memory watchdog ( #150402 )
...
In practice, this change adds Windows, FreeBSD and macOS support
to the memory watchdog.
2026-05-25 21:15:12 +00:00
Victor Stinner
5cb54c9c09
gh-149879: Fix test_concurrent_futures on Cygwin ( #150415 )
...
On Cygwin, skip tests using "forkserver" start method.
Don't check BrokenProcessPool.__cause__, it's not set on Cygwin.
2026-05-25 23:04:14 +02:00
Angelo Licastro
c549837a53
gh-150427: Remove unused __linecnt attribute from _sitebuiltins ( #150428 )
2026-05-25 22:56:27 +02:00
Victor Stinner
be715d75c0
gh-149879: Fix test_asyncio on Cygwin ( #150416 )
...
Skip tests on UNIX sockets since they hang on Cygwin.
2026-05-25 22:54:01 +02:00
Victor Stinner
0065d223ac
gh-149879: Fix test_ssl on Cygwin ( #150419 )
...
On Cygwin, ignore EAGAIN in SSLSocket._create() if getpeername() fails.
2026-05-25 22:32:37 +02:00
Victor Stinner
71fa31454e
gh-149879: Fix test_httpservers on Cygwin ( #150417 )
2026-05-25 19:50:35 +00:00
Pablo Galindo Salgado
3cf6ef445f
gh-150387: Fix hang in test_run_failed_script_live on slow buildbots ( #150405 )
2026-05-25 19:17:00 +01:00
Victor Stinner
08afe29872
gh-149879: Fix test_termios and test_ioctl on Cygwin ( #150412 )
...
Skip tests failing on Cygwin.
2026-05-25 19:06:28 +02:00
Victor Stinner
a189e3dd03
gh-150114: Fix get_process_memory_usage() on Windows ( #150399 )
...
Catch OSError if the process exited.
2026-05-25 14:04:37 +00:00
Victor Stinner
dfe7ef6292
gh-150114: Log the memory usage in regrtest on FreeBSD ( #150280 )
...
Add _testcapi.get_process_memory_usage().
On FreeBSD, _testcapi is now linked to libkvm.
2026-05-25 13:45:55 +00:00
Serhiy Storchaka
46e8f7a9e7
gh-80198: Improve test_pwd and test_grp (GH-150380)
...
Fix tests for non-existing names and ids when getpwall()/getgrall()
don't return all users/groups.
Add tests for out-of-range uids, integer float ids, bytes names,
null-terminated names, names with surrogates, empty names, excessive
arguments.
2026-05-25 16:17:38 +03:00
Stefano Rivera
07ae6f133a
gh-150208: Avoid double-quoting string values in sysconfigdata ( #150209 )
...
String values from ``pyconfig.h`` were rendered into ``sysconfigdata``
variables, retaining the quotes.
2026-05-25 13:30:07 +01:00
devdanzin
832afeddce
gh-145896: Fix typos and stale docstrings in the traceback module (GH-145897)
2026-05-25 12:45:02 +03:00
Serhiy Storchaka
01c6d3d76b
gh-150285: Fix too long docstrings in some Python modules (GH-150366)
2026-05-25 07:33:54 +00:00
Sergey B Kirpichev
7e5d1d8fa8
gh-72902: Speedup Fraction.from_decimal/float in typical cases (GH-133251)
2026-05-25 10:04:56 +03:00
Pieter Eendebak
43c60ec2fd
gh-149449: Fix use-after-free in _PyUnicode_GetNameCAPI ( #150323 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-05-24 16:17:38 +00:00
Mohammad Reza
cb72193c8c
gh-150315: increase test coverage for asyncio._FlowControlMixin.set_write_buffer_limits ( #150317 )
2026-05-24 19:50:55 +05:30
Serhiy Storchaka
a5cb7c34dd
gh-150285: Fix too long docstrings in the os module (GH-150296)
2026-05-24 15:04:01 +03:00
Serhiy Storchaka
9fceb1c0c5
gh-150285: Fix too long docstrings in the zstd module (GH-150291)
2026-05-24 15:03:22 +03:00