Nadeshiko Manju
614d79231d
gh-131798: JIT - Use sym_new_type
instead of sym_new_not_null
for _BUILD_STRING, _BUILD_SET (GH-132564)
...
Signed-off-by: Manjusaka <me@manjusaka.me>
2025-04-27 20:30:28 +08:00
Wulian233
8b4fd24ca5
gh-128438: Use EnvironmentVarGuard
in test_zoneinfo.py
( #131870 )
2025-04-27 13:29:37 +02:00
Bénédikt Tran
cc05e4b867
gh-91069: do not disable sha3
in test_hashlib
under UBSan ( #133001 )
2025-04-27 11:51:00 +02:00
Tian Gao
4f18916c5c
gh-124703: Set return code to 1 when aborting process from pdb ( #133013 )
2025-04-26 18:43:23 -04:00
Stan Ulbrych
ee033d4555
gh-63882: Implement some test_minidom
tests ( #132879 )
...
Co-authored-by: Julian Gindi <julian@gindi.io>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-26 23:03:48 +03:00
John
8d6d7386a3
gh-133016: Fix a reference to removed asyncio.futures.TimeoutError
( #133019 )
...
Just use the builtin `TimeoutError`, and remove the import of `futures`.
2025-04-26 18:57:08 +00:00
Tomas R.
5e96e4fca8
gh-131798: JIT: Propagate the result in _BINARY_OP_SUBSCR_TUPLE_INT
(GH-133003)
2025-04-27 02:47:55 +08:00
Stan Ulbrych
56c88e4e8d
gh-63882: Use self.assert*
methods in test_minidom
( #133000 )
2025-04-26 18:24:54 +00:00
Tian Gao
0eb0e70ca0
gh-133006: Add subprocess check for remote pdb test ( #133014 )
2025-04-26 19:09:09 +01:00
Alyssa Ross
314f4b9716
gh-132991: Add socket.IP_FREEBIND constant (GH-132998)
2025-04-26 20:54:12 +03:00
Anthony Sottile
bd2e5f044c
gh-131298: update Modules/Setup
after HACL* static linking changes ( #133012 )
...
This was overlooked in 5f2ba152a0
.
2025-04-26 18:44:19 +02:00
Serhiy Storchaka
632524a5cb
gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse (GH-132988)
2025-04-26 17:14:18 +03:00
Bénédikt Tran
e714ead7a2
gh-132388: remove outdated TODO comment in test_hmac.py
( #133008 )
2025-04-26 13:17:03 +00:00
Bénédikt Tran
7f02ded29f
gh-91221: fix test_curses.test_use_default_colors
for xterm-256color ( #132990 )
...
Terminals with `xterm-256color` Xterm support may use 15 (bright white) as their default foreground color.
2025-04-26 10:38:27 +00:00
Bénédikt Tran
ca12a744ab
gh-132781: fix refleaks in crossinterp_exceptions.h
post gh-132782 ( #132989 )
2025-04-26 12:14:14 +02:00
Eric Snow
8a4d4f37ab
gh-132781: Make NotShareableError a TypeError Subclass (gh-132973)
...
It was a subclass of ValueError. However, shareability is a feature of types, not values.
2025-04-25 21:10:43 +00:00
Eric Snow
cd9536a087
gh-132781: Cleanup Code Related to NotShareableError (gh-132782)
...
The following are added to the internal C-API:
* _PyErr_FormatV()
* _PyErr_SetModuleNotFoundError()
* _PyXIData_GetNotShareableErrorType()
* _PyXIData_FormatNotShareableError()
We also drop _PyXIData_lookup_context_t and _PyXIData_GetLookupContext().
2025-04-25 14:43:38 -06:00
Diego Russo
4c20f46fa0
gh-131798: JIT: Narrow the return type of _CALL_LEN to int ( #132940 )
...
Reduce unnecessary guards whenever `len()` is called and used
after.
Co-authored-by: Max Bernstein <tekknolagi@gmail.com>
2025-04-26 02:57:42 +08:00
Victor Stinner
f0485de43a
gh-132950: Log is_remote_debug_enabled() in pythoninfo ( #132965 )
...
Log also the Py_REMOTE_DEBUG macro.
2025-04-25 18:13:47 +00:00
Pablo Galindo Salgado
a5e628beb8
gh-91048: Prevent optimizing away the asyncio debug offsets structure on Windows ( #132963 )
...
To avoid having the debug sections being optimised away by the compiler
we use __attribute__((used)) on gcc and clang but in Windows this is
not supported by the Microsoft compiler and there is no equivalent flag.
Unfortunately Windows offers almost no alternative other than exporting
the symbol in the dynamic table or using it somehow.
2025-04-25 17:43:32 +00:00
Tian Gao
a1f4a6b246
gh-132912: Use readline to synchronize between procs in remote pdb test ( #132949 )
2025-04-25 18:40:18 +01:00
Victor Stinner
947c4f19d9
gh-132950: Skip test_remote_pdb if remote exec is disabled ( #132951 )
2025-04-25 17:28:25 +00:00
Eric Snow
2a28b21a51
gh-132776: Revert Moving memoryview XIData Code to memoryobject.c (gh-132960)
...
This is a partial revert of gh-132821. It resolves the refleak introduced by that PR.
2025-04-25 16:43:50 +00:00
Pablo Galindo Salgado
622176513e
gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled ( #132959 )
2025-04-25 16:38:48 +00:00
Victor Stinner
ac5424d6a9
gh-107954: Add audit event to PyConfig_Set() ( #132958 )
2025-04-25 18:30:39 +02:00
Victor Stinner
070d866567
gh-107954: Allow setting cpu_count in PyConfig_Set() ( #132954 )
...
* gh-107954: Allow setting cpu_count in PyConfig_Set()
* Update the doc
2025-04-25 18:29:55 +02:00
Victor Stinner
17718b0503
gh-91048: Fix _testexternalinspection.c on FreeBSD ( #132945 )
2025-04-25 14:57:01 +00:00
Victor Stinner
670b6cc096
gh-132912: Use SHORT_TIMEOUT in test_remote_pdb ( #132939 )
...
Replace hardcoded timeout of 5 seconds with SHORT_TIMEOUT.
2025-04-25 14:00:26 +00:00
Pablo Galindo Salgado
6cbeb6ab91
gh-132912: Account for race in test_keyboard_interrupt in test_remote_pdb ( #132929 )
2025-04-25 14:46:44 +01:00
Christian Veenhuis
52454c5d59
gh-132527: Added missing w
typecode to array() error message ( #132529 )
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2025-04-25 16:31:05 +03:00
Victor Stinner
eb2e430b88
gh-132912: Set 15 min timeout on GHA Hypothesis CI ( #132914 )
2025-04-25 13:29:16 +00:00
Pablo Galindo Salgado
e8cf3a1a64
gh-91048: Refactor _testexternalinspection and add Windows support ( #132852 )
2025-04-25 14:12:16 +01:00
Stan Ulbrych
f6fb498c97
gh-132798: Schedule removal of PyUnicode_AsDecoded/Encoded
functions for 3.15 ( #132799 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-04-25 15:07:41 +02:00
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
8783cec9b6
gh-129027: Raise DeprecationWarning for sys._clear_type_cache ( #129043 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-25 15:01:48 +03:00
Victor Stinner
b402a4889b
gh-132912: Skip flaky test in test_remote_pdb ( #132924 )
2025-04-25 11:46:43 +00:00
Ronald Oussoren
25e49841e3
gh-113539: Enable using `$BROWSER
` to reorder default seach order in webbrowser.py ( #113561 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-25 14:36:18 +03:00
Victor Stinner
1a70f66ea8
gh-132921: Fix setuptools._distutils.dep_util deprecation ( #132923 )
...
Replace setuptools._distutils.dep_util with setuptools.modified in
peg_generator compile_c_extension().
2025-04-25 11:31:19 +00:00
Victor Stinner
79ba56433e
gh-132912: Kill the process on error in test_remote_pdb ( #132920 )
...
If a test fails (such as an assertion error), kill the child process.
2025-04-25 13:14:59 +02:00
Bénédikt Tran
3fa024dec3
gh-132909: handle overflow for 'K'
format in do_mkvalue
( #132911 )
2025-04-25 11:02:57 +00:00
Victor Stinner
de6482eda3
gh-132415: Use shutil.which() in missing_compiler_executable() ( #132906 )
...
Replace deprecated distutils.spawn.find_executable() with
shutil.which() in missing_compiler_executable() of test.support.
2025-04-25 11:50:55 +02:00
Bénédikt Tran
6a9bfee4fa
gh-131423: Update OpenSSL data to 3.4.1 on Linux ( #131618 )
...
OpenSSL 3.4.1 mnemonics are not compatible with OpenSSL 3.4.0 ones since
they were renumbered [1, 2]. Consequently, `_ssl_data_34.h` is renamed to
`_ssl_data_340.h` and `_ssl_data_34.h` now contains OpenSSL 3.4.1 mnemonics.
We also refine the mnemonics that are selected, discarding those that are
mnemonic-like but should not be used as such. More precisely, we remove
the ERR_LIB_MASK and ERR_LIB_OFFSET entries from OpenSSL 1.1.1 data.
[1]: https://github.com/openssl/openssl/issues/26316
[2]: https://github.com/openssl/openssl/issues/26388
2025-04-25 10:26:58 +02:00
Victor Stinner
9cba14881b
gh-127906: Add missing sys import to test_cppext ( #132902 )
2025-04-25 10:19:26 +02:00
Bénédikt Tran
9888f175de
gh-131652: remove duplicated bits in Lib/test/clinic.test.c
( #131653 )
2025-04-25 10:19:12 +02:00
Sergey B Kirpichev
ecd03739f8
gh-132868: use _Alignof()
C11 operator in the struct
module ( #132872 )
2025-04-25 09:57:22 +02:00
Victor Stinner
c292f7f563
gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE ( #132897 )
2025-04-25 09:28:34 +02:00
Ethan Furman
22bc953aa9
gh-132684: [Enum] only call _missing_ in __contains__ for Flags (GH-132790)
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-04-24 23:13:54 -07:00
Raymond Hettinger
63da5cc150
gh-132893: More accurate CDF computation (gh-132895)
2025-04-25 00:34:55 -05:00
Ruben Vorderman
b1fc8b69ec
gh-98347: Add links to python-isal in the documentation ( #98637 )
...
Clearly note that this is primarily intended for users for who zlib/gzip is a bottleneck.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-04-25 01:53:23 +00:00
Steele Farnsworth
99b71efe8e
gh-129858: Special syntax error for elif
block after else
( #129902 )
2025-04-25 01:25:48 +00:00
Tomas R.
c3a7118065
gh-69605: Add module autocomplete to PyREPL ( #129329 )
2025-04-25 02:24:26 +01:00