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
Steve Dower
73473fdeac
gh-92817: Fix precedence of options to py.exe launcher (GH-92988)
2022-05-19 23:45:41 +01:00
Steve Dower
403d16fa28
gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields (GH-92980)
2022-05-19 20:23:53 +01:00
Mark Shannon
3fd8610002
GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. (GH-92960)
2022-05-19 17:49:29 +01:00
Nikita Sobolev
8db2b3b687
bpo-28249: fix `lineno` location for empty `DocTest` instances (GH-30498)
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-05-19 17:46:15 +02:00
David Foster
30deeac649
gh-92675: venv: Fix ensure_directories() to again accept a Path for env_dir ( #92676 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-05-19 07:47:16 -07:00
Christian Heimes
137fd3d88a
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
2022-05-19 12:43:16 +02:00
Mark Shannon
e48ac9c100
GH-90690: Remove `PRECALL` instruction (GH-92925)
2022-05-19 11:05:26 +01:00
Ayappan Perumal
654032ac5f
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX ( #92718 )
2022-05-19 11:17:44 +02:00
Serhiy Storchaka
8a6af5a346
gh-92914: Round the allocated size for lists up to the even number (GH-92915)
2022-05-19 08:43:50 +03:00
Inada Naoki
96f65835f8
gh-87901: Remove the encoding argument from os.popen (GH-92836)
2022-05-19 11:42:43 +09:00
Oleg Iarygin
33880b4b1c
gh-92841: Fix asyncio's RuntimeError: Event loop is closed (GH-92842)
2022-05-17 23:27:32 +01:00
Victor Stinner
970efae274
gh-89898: Fix test_threading.test_args_argument() ( #92885 )
...
Join the thread to not leak threads running in the background to the
next test.
Fix the following warning on the "AMD64 FreeBSD Shared 3.11"
buildbot:
test_args_argument (test.test_threading.ThreadTests.test_args_argument) ...
Warning -- threading_cleanup() failed to cleanup 1 threads (count: 1, dangling: 2)
Warning -- Dangling thread: <_MainThread(MainThread, started 35026161664)>
Warning -- Dangling thread: <Thread(Thread-134 (<lambda>), started 35314998016)>
ok
2022-05-18 00:19:56 +02:00