Pablo Galindo Salgado
705eaec28f
gh-92597: Ensure that AST nodes without explicit end positions can be compiled (GH-93359)
2022-06-01 00:00:47 +01:00
Dennis Sweeney
f425f3bb27
gh-93143: Avoid NULL check in LOAD_FAST based on analysis in the compiler (GH-93144)
2022-05-31 16:32:30 -04:00
Serhiy Storchaka
07df8d5b2c
gh-93283: Improve error message for f-string with invalid conversion character (GH-93349)
2022-05-31 20:38:29 +03:00
Serhiy Storchaka
f545fc955a
gh-93345: Fix a crash in substitution of nested TypeVar after TypeVarTuple (GH-93346)
...
For example: tuple[*Ts, list[T]][int, str, bool]
2022-05-31 08:46:16 +03:00
Pablo Galindo Salgado
5893b5db98
gh-93351: Ensure the position information in AST nodes created by the parser is always consistent (GH-93352)
2022-05-30 19:30:15 +01:00
luzpaz
4f195f9db1
Fix typo in Lib/idlelib/idle_test/test_parenmatch.py (GH-93332)
...
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-05-29 21:41:59 -04:00
Sergei Izmailov
66f5add1f0
bpo-41287: Handle `doc` argument of `property.__init__` in subclasses ( #23205 )
...
Fixes #85459
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-28 20:25:51 -07:00
oda-gitso
7fa9b7daa5
gh-92839: fixed typo in _bisectmodule.c (line 131) ( #92849 )
2022-05-28 13:08:06 -05:00
Yury Selivanov
e6a57678ca
gh-93297: Make asyncio task groups prevent child tasks from being GCed ( #93299 )
2022-05-27 15:20:21 -07:00
Ethan Furman
70cfe56caf
gh-93250: [Enum] Change IntEnum boundary to KEEP for backwards compatibility (GH-93302)
...
In previous versions of Python if an IntEnum member was combined with another integer type value using a bit-wise operation, the resulting value would still be the IntEnum type. This change restores that behavior.
2022-05-27 15:14:28 -07:00
hfinucane
47e68d4515
bpo-46951: Order contents of zipapps (GH-31713)
...
So that builds are more reproducible.
2022-05-27 19:04:29 +03:00
Dennis Sweeney
ddc4a782d3
gh-93223: More aggressive Jump-To-Jump elimination (GH-93229)
2022-05-27 11:17:59 +01:00
Wenzel Jakob
5e34b494a0
gh-60074: add new stable API function PyType_FromMetaclass (GH-93012)
...
Added a new stable API function ``PyType_FromMetaclass``, which mirrors
the behavior of ``PyType_FromModuleAndSpec`` except that it takes an
additional metaclass argument. This is, e.g., useful for language
binding tools that need to store additional information in the type
object.
2022-05-27 10:27:39 +02:00
Victor Stinner
20d30ba2cc
gh-92898: Enhance _testcppext test on cast to PyObject* ( #93111 )
...
* Add StrongRef class.
* Rename and reformat functions of the _Py_CAST() implementation.
2022-05-27 01:12:39 +02:00
Vinay Sajip
efc5d37671
gh-91513: Tidied up a test and did minor refactoring around test filename gener… (GH-93265)
2022-05-26 17:11:15 +01:00
Victor Stinner
06dd26f89f
test.pythoninfo logs more build info ( #93225 )
...
Log also test.support.check_sanitizer() values.
2022-05-26 16:07:01 +02:00
jackh-ncl
cc377063ef
gh-91513: Add 'asyncio' taskName to logging LogRecord attributes. (GH-93193)
2022-05-26 09:30:51 +01:00
Victor Stinner
5185956527
gh-69443: Add test.support.Py_DEBUG constant ( #93226 )
2022-05-26 00:12:54 +02:00
Steve Dower
ca58e4a2c5
gh-93005: Fix py.exe launcher test to search for intended tag (GH-93190)
2022-05-25 22:59:33 +01:00
Victor Stinner
bf58cd01b3
gh-90817: Deprecate explicitly locale.resetlocale() ( #93196 )
...
The function was already deprecated in Python 3.11 since it calls
locale.getdefaultlocale() which was deprecated in Python 3.11.
2022-05-25 22:04:06 +02:00
Akuli
a4974003ec
gh-93124: Fix typos in comments (GH-93125)
...
Fixes #93124
Automerge-Triggered-By: GH:rhettinger
2022-05-25 08:34:14 -07:00
Christian Heimes
1f134e96ba
gh-90473: Misc test fixes for WASI (GH-93218)
...
* ``sys.executable`` is not set
* WASI does not support subprocess
* ``pwd`` module is not available
* WASI checks ``open`` syscall flags more strict, needs r, w, rw flag.
* ``umask`` is not available
* ``/dev/null`` may not be accessible
2022-05-25 15:57:26 +02:00
Ken Jin
5e6e5b98a8
gh-92777: Add LOAD_METHOD_LAZY_DICT (GH-92778)
2022-05-25 14:06:15 +01:00
Erlend Egeberg Aasland
db3ef0c82a
gh-93117: Remove too large sqlite3 bigmemtest ( #93154 )
2022-05-25 14:53:26 +02:00
Florian Bruhin
19710145b4
test_threaded_import: Fix unittest.main spelling (GH-93114)
2022-05-25 10:59:32 +03:00
Miro Hrončok
16a7e4a0b7
gh-92728: Restore re.template, but deprecate it (GH-93161)
...
Revert "bpo-47211: Remove function re.template() and flag re.TEMPLATE (GH-32300)"
This reverts commit b09184bf05
.
2022-05-25 09:05:35 +03:00
Tobin Yehle
08cfc3dabf
gh-93035: [Enum] Fix IntFlag crash when no single-bit members (GH-93076)
...
`EnumType` attempts to create a custom docstring for each enum/flag, but that was failing with pathological flags that had no members (only multi-bit aliases).
2022-05-24 18:16:20 -07:00
Victor Stinner
4a31ed8a32
test.pythoninfo no longer requires socket ( #93191 )
...
test.pythoninfo no longer fails if "import socket" fails: the socket
module is now optional.
2022-05-25 02:11:51 +02:00
Jordan Borean
fbd11f3edd
gh-92658: Add Hyper-V socket support (GH-92755)
2022-05-24 21:37:06 +01:00
Kumar Aditya
d2ef66a10b
GH-89369: test_contextlib_async finalizes event loop after each test ( #93074 )
...
Use asyncio.run().
2022-05-24 15:41:32 +02:00
Florian Bruhin
37c9a351b1
GH-93112: Fix missing ResourceDenied import in test_urllib2net ( #93113 )
...
The code was moved out of test.support in
311110abcd
(GH-20812), thus making
ResourceDenied undefined.
2022-05-24 14:09:52 +02:00
Dong-hee Na
f7fabae75c
gh-93099: Fix _pyio to use locale module properly (gh-93136)
2022-05-24 09:37:01 +09:00
Yury Selivanov
c1f5c903a7
gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066)
...
Also while there, clarify a few things about why we reduce the hash to 32 bits.
Co-authored-by: Eli Libman <eli@hyro.ai>
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-05-23 21:09:59 +02:00
Ethan Furman
a49721ea07
gh-93118: [Enum] fix error message (GH-93138)
...
Include member names in error message.
2022-05-23 11:21:58 -07:00
Sam Ezeh
202ed2506c
gh-83245: Raise BadZipFile instead of ValueError when reading a corrupt ZIP file (GH-32291)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-05-23 20:59:21 +03:00
oda-gitso
71abeb0895
gh-93010: InvalidHeaderError used but nonexistent ( #93015 )
...
* fix issue 93010
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-05-23 09:10:18 -07:00
Steve Dower
949dbf97ba
gh-93005: Fixes launcher test when no Python install is available (GH-93007)
2022-05-23 17:04:26 +01:00
Florian Bruhin
d5f0dd1600
GH-93115: Fix version check in sqlite3 module constants test ( #93116 )
2022-05-23 17:58:11 +02:00
Ethan Furman
046df59658
gh93107: [Enum] fix missing variable in global_str (GH-93107)
2022-05-23 08:56:07 -07:00
Dennis Sweeney
a458be3263
gh-93061: Mark as artificial: backwards jump after async for (GH-93062)
2022-05-23 13:58:41 +01:00
Christian Heimes
760ec8940a
gh-90473: WASI: skip gethostname tests (GH-93092)
...
- WASI's ``gethostname()`` is a stub that always fails with OSError
``ENOTSUP``
- skip mailcap ``test`` if subprocess is not available
- WASI process_time clock does not work.
2022-05-23 10:39:57 +02:00
Mori Bellamy
9bc616cb4c
gh-91061: also accept pathlib.Path for winsound.PlaySound ( #91489 )
...
Fixes #91061
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-22 18:54:24 -07:00
Serhiy Storchaka
e5d8dbdd30
Clean up the sqlite3 tests (GH-93056)
...
Remove helper managed_connect(). Use memory_database() or
contextlib.closing() + addCleanup(unlink) instead.
2022-05-21 19:06:12 +03:00
Serhiy Storchaka
4e2b664892
Improve tests for opening Sqlite by URI (GH-93047)
...
* Test with with escaped non-ascii characters
* Test read-only open of existing DB.
2022-05-21 17:38:22 +03:00
serge-sans-paille
5b71b519f9
GH-92898: Make _Py_Cast C++ version compatible with cast operator (gh-92951)
2022-05-21 22:16:37 +09:00
Serhiy Storchaka
14c0d33016
gh-93044: No longer convert the database argument of sqlite3.connect() to bytes (GH-93046)
...
Just pass it to the factory as is.
2022-05-21 14:35:46 +03:00
Lucinda May Phipps
87b9b4e060
shutil._copyfileobj_readinto: tiny speedup ( #92377 )
2022-05-20 08:14:05 -07:00
Shantanu
f20a6a54fb
gh-91860: documentation for typing.dataclass_transform ( #92768 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-20 07:32:29 -07:00
Serhiy Storchaka
d853758092
gh-91922: Fix sqlite connection on nonstardard locales and paths (GH-92926)
2022-05-20 11:53:05 +03:00
Pavel
a637c09a60
Doc: Minor adjustment of `socket.create_server` docs ( #26938 )
...
- fix spelling in create_server() docs
- add a line about create_server() in the socket.py docstring
2022-05-20 10:18:02 +02:00