summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-128078: Use `PyErr_SetRaisedException` in ↵Miss Islington (bot)2025-02-031-1/+1
| | | | | | | | | `_PyGen_SetStopIterationValue` (GH-128287) (#128790) gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` (GH-128287) (cherry picked from commit 402b91da87052878b4e7e8946ba91bdf4ee4bebe) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] gh-127975: Avoid reusing quote types in ast.unparse if not needed ↵Miss Islington (bot)2025-02-021-4/+6
| | | | | | | | (GH-127980) (#129601) gh-127975: Avoid reusing quote types in ast.unparse if not needed (GH-127980) (cherry picked from commit 8df5193d37f70a1478642c4b456dcc7d6df6c117) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.12] gh-115514: Fix incomplete writes after close while using ssl in ↵Miss Islington (bot)2025-02-022-0/+203
| | | | | | | | | | asyncio(GH-128037) (#129582) gh-115514: Fix incomplete writes after close while using ssl in asyncio(GH-128037) (cherry picked from commit 4e38eeafe2ff3bfc686514731d6281fed34a435e) Co-authored-by: Vojtěch Boček <vbocek@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] gh-105704: Disallow square brackets (`[` and `]`) in domain names for ↵Miss Islington (bot)2025-02-021-1/+36
| | | | | | | | | | | | | | | | | | | | | | parsed URLs (GH-129418) (GH-129527) gh-105704: Disallow square brackets (`[` and `]`) in domain names for parsed URLs (GH-129418) * gh-105704: Disallow square brackets ( and ) in domain names for parsed URLs * Use Sphinx references * Add mismatched bracket test cases, fix news format * Add more test coverage for ports --------- (cherry picked from commit d89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a) Co-authored-by: Seth Michael Larson <seth@python.org> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.12] gh-119461: Restore the testSocket VSOCK skipUnless removed by PR ↵Miss Islington (bot)2025-02-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | GH-119465 (GH-129561) (#129565) gh-119461: Restore the testSocket VSOCK skipUnless removed by PR GH-119465 (GH-129561) Restore the skipUnless removed by GH-119465. This test can only pass on virtual machines, not actual machines. actual machines see: ``` self.cli.connect((cid, VSOCKPORT)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ OSError: [Errno 19] No such device ``` Reproduced on (Linux) Ubuntu 24.04.1 running 6.8.0-52-generic. (cherry picked from commit e1006ce1ded1b18972888ef057718dba6f2c7edd) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-111495: Add PyFile tests (#129449) (#129477) (#129501)Victor Stinner2025-01-312-51/+231
| | | | | | | | | | | | | | | | | | | [3.13] gh-111495: Add PyFile tests (#129449) (#129477) gh-111495: Add PyFile tests (#129449) Add tests for the following functions in test_capi.test_file: * PyFile_FromFd() * PyFile_GetLine() * PyFile_NewStdPrinter() * PyFile_WriteObject() * PyFile_WriteString() * PyObject_AsFileDescriptor() Remove test_embed.StdPrinterTests which became redundant. (cherry picked from commit 4ca9fc08f89bf7172d41e523d9e520eb1729ee8c) (cherry picked from commit 9a59a51733e58b6091ca9157fd43cc9d0f93a96f)
* [3.12] gh-128799: Add frame of except* to traceback when wrapping a naked ↵Irit Katriel2025-01-301-0/+25
| | | | exception (GH-128971) (#129328)
* [3.12] gh-125522: Fix bare except in `test_uuid` (GH-129018) (#129456)Miss Islington (bot)2025-01-291-1/+1
| | | | | | gh-125522: Fix bare except in `test_uuid` (GH-129018) (cherry picked from commit a1a4e9f39ad86359e148fd193089b3b2a354f71d) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.12] gh-112064: Fix incorrect handling of negative read sizes in ↵Miss Islington (bot)2025-01-281-0/+19
| | | | | | | | | | | | | `HTTPResponse.read()` (GH-128270) (#129396) gh-112064: Fix incorrect handling of negative read sizes in `HTTPResponse.read()` (GH-128270) The parameter `amt` of `HTTPResponse.read()`, which could be a negative integer, has not been handled before and led to waiting for the connection to close for `keep-alive connections`. Now, this has been fixed, and passing negative values to `HTTPResponse().read()` works the same as passing `None` value. (cherry picked from commit 4d0d24f6e3dff2864007c3cfd1cf7d49c6ee5317) Co-authored-by: Yury Manushkin <manushkin@gmail.com>
* [3.12] gh-119511: Fix a potential denial of service in imaplib (GH-119514) ↵Miss Islington (bot)2025-01-271-0/+14
| | | | | | | | | | | | | | | | (GH-129356) gh-119511: Fix a potential denial of service in imaplib (GH-119514) The IMAP4 client could consume an arbitrary amount of memory when trying to connect to a malicious server, because it read a "literal" data with a single read(size) call, and BufferedReader.read() allocates the bytes object of the specified size before reading. Now the IMAP4 client reads data by chunks, therefore the amount of used memory is limited by the amount of the data actually been sent by the server. (cherry picked from commit 735f25c5e3a0f74438c86468ec4dfbe219d93c91) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-58956: Set f_trace on frames with breakpoints after setting a new ↵Miss Islington (bot)2025-01-251-0/+30
| | | | | | | | breakpoint (GH-124454) (#125549) * gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint (GH-124454) (cherry picked from commit 12eaadc0ad33411bb02945d700b6ed7e758bb188) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-128479: fix asyncio staggered race leaking tasks, and logging ↵Miss Islington (bot)2025-01-231-0/+27
| | | | | | | | | unhandled exception.append exception (GH-128475) (#129228) gh-128479: fix asyncio staggered race leaking tasks, and logging unhandled exception.append exception (GH-128475) (cherry picked from commit ec91e1c2762412f1408b0dfb5d281873b852affe) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* [3.12] gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) ↵Victor Stinner2025-01-231-6/+37
| | | | | | | | | | | | | | | | | | (#129217) (#129221) [3.13] gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) (#129217) gh-129185: Fix PyTraceMalloc_Untrack() at Python exit (#129191) Support calling PyTraceMalloc_Track() and PyTraceMalloc_Untrack() during late Python finalization. * Call _PyTraceMalloc_Fini() later in Python finalization. * Test also PyTraceMalloc_Untrack() without the GIL * PyTraceMalloc_Untrack() now gets the GIL. * Test also PyTraceMalloc_Untrack() in test_tracemalloc_track_race(). (cherry picked from commit 46c7e13c055c218e18b0424efc60965e6a5fe6ea) (cherry picked from commit e3b3e01d6a6f43c15890d14f139f38155601643a)
* [3.12] gh-124363: Treat debug expressions in f-string as raw strings ↵Pablo Galindo Salgado2025-01-221-0/+8
| | | | | | | (GH-128399) (#129190) (cherry picked from commit 60a3a0dd6fe140fdc87f6e769ee5bb17d92efe4e) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* [3.12] gh-129093: Fix f-string debug text sometimes getting cut off when ↵Pablo Galindo Salgado2025-01-221-0/+18
| | | | expression contains ! (#129164)
* [3.12] gh-128588: fix refcycles in eager task creation and remove eager ↵Thomas Grainger2025-01-211-1/+120
| | | | | tasks optimization that missed and introduced incorrect cancellations (#129063) (#128586) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] GH-128131: Completely support random read access of uncompressed ↵Miss Islington (bot)2025-01-201-0/+83
| | | | | | | | | | unencrypted files in ZipFile (GH-128143) (#129092) GH-128131: Completely support random read access of uncompressed unencrypted files in ZipFile (GH-128143) (cherry picked from commit dda02eb7be62bf0af850a7521c77c90ea997df6c) Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.12] gh-71339: Add additional assertion methods in test.support ↵Serhiy Storchaka2025-01-206-49/+68
| | | | | | | | | | | | | | | (GH-128707) (GH-128815) (GH-129059) Add a mix-in class ExtraAssertions containing the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() (cherry picked from commit c6a566e47b9903d48e6e1e78a1af20e6c6c535cf) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 06cad77a5b345adde88609be9c3c470c5cd9f417)
* [3.12] gh-80222: Fix email address header folding with long quoted-string ↵Miss Islington (bot)2025-01-191-2/+29
| | | | | | | | | | | | | | (GH-122753) (#129008) gh-80222: Fix email address header folding with long quoted-string (GH-122753) Email generators using email.policy.default could incorrectly omit the quote ('"') characters from a quoted-string during header refolding, leading to invalid address headers and enabling header spoofing. This change restores the quote characters on a bare-quoted-string as the header is refolded, and escapes backslash and quote chars in the string. (cherry picked from commit 5aaf41685834901e4ed0a40f4c055b92991a0bb5) Co-authored-by: Mike Edmunds <medmunds@gmail.com>
* [3.12] gh-111495: Add more tests on PyEval C APIs (#122789) (#128987) (#129023)Victor Stinner2025-01-192-30/+88
| | | | | | | | | | | * Add Lib/test/test_capi/test_eval.py * Add Modules/_testlimitedcapi/eval.c (cherry picked from commit bf8b3746398ea756c97e3cf263d63ca3ce3a544e) * gh-111495: Fix refleaks in test_capi.test_eval tests (#122851) (cherry picked from commit b4a316087c32d83e375087fd35fc511bc430ee8b) (cherry picked from commit 430ccbc009aa7a2da92b85d7aeadd39e1666e875)
* [3.12] gh-128679: Fix tracemalloc.stop() race conditions (#128897) (#129022)Victor Stinner2025-01-191-1/+9
| | | | | | | | | | | | | | | | | [3.13] gh-128679: Fix tracemalloc.stop() race conditions (#128897) tracemalloc_alloc(), tracemalloc_realloc(), PyTraceMalloc_Track(), PyTraceMalloc_Untrack() and _PyTraceMalloc_TraceRef() now check tracemalloc_config.tracing after calling TABLES_LOCK(). _PyTraceMalloc_Stop() now protects more code with TABLES_LOCK(), especially setting tracemalloc_config.tracing to 1. Add a test using PyTraceMalloc_Track() to test tracemalloc.stop() race condition. Call _PyTraceMalloc_Init() at Python startup. (cherry picked from commit 6b47499510e47c0401d1f6cca2660fc12c496e39)
* [3.12] gh-128911: Add tests on the PyImport C API (GH-128915) (GH-128960) ↵Serhiy Storchaka2025-01-191-0/+313
| | | | | | | | | | | | | | (#128989) * Add Modules/_testlimitedcapi/import.c * Add Lib/test/test_capi/test_import.py * Remove _testcapi.check_pyimport_addmodule(): tests already covered by newly added tests. (cherry picked from commit 34ded1a1a10204635cad27830fcbee2f8547e8ed) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit d95ba9fa1110534b7247fa2ff12b90e930c93256)
* [3.12] gh-127637: add tests for `dis` command-line interface (#127759) (#127780)Bénédikt Tran2025-01-181-3/+17
|
* [3.12] gh-128961: Fix exhausted array iterator crash in __setstate__() ↵Miss Islington (bot)2025-01-181-0/+8
| | | | | | | (GH-128962) (#128977) (cherry picked from commit 4dade055f4e18a7e91bc70293abb4db745ad16ca) Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
* [3.12] gh-58956: Fix a frame refleak in bdb (GH-128190) (#128953)Tian Gao2025-01-171-0/+52
| | | | | | * [3.12] gh-58956: Fix a frame refleak in bdb (GH-128190) (cherry picked from commit 767c89ba7c5a70626df6e75eb56b546bf911b997) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128871)Miss Islington (bot)2025-01-161-1/+7
| | | | | | | * Fix a deprecation warning for using importlib.resources.abc.ResourceReader. * Fix an import warning when importing readline (if it has not yet been imported). (cherry picked from commit 599be687ec7327c30c6469cf743aa4ee9e82232d) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.12] gh-128833: Patch ↵Bénédikt Tran2025-01-151-3/+3
| | | | | `test_embed.test_specialized_static_code_gets_unspecialized_at_Py_FINALIZE` on Windows (#128860) Hotfix for `test_embed`
* [3.12] gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) ↵Miss Islington (bot)2025-01-141-0/+4
| | | | | | | | (#128834) gh-109959: Skip test_glob.test_selflink() flaky test (GH-128812) (cherry picked from commit 1153e66e20124b8f3484bcaddbc0e252d31161a6) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-125997: Increase test coverage for `time.sleep()` (GH-128751) ↵Miss Islington (bot)2025-01-131-2/+11
| | | | | | | | | | | | | | | (#128795) gh-125997: Increase test coverage for `time.sleep()` (GH-128751) - Add tests for durations of invalid types. - Add tests for `int` and `float` durations, including signed zeroes durations. - Add tests for nonzero very small durations and durations close to the clock resolution. --------- (cherry picked from commit b70a567575db37846beecbe8b40fb56b875274db) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-128562: Fix generation of the tkinter widget names (GH-128604) ↵Miss Islington (bot)2025-01-131-1/+9
| | | | | | | | (GH-128792) There were possible conflicts if the widget class name ends with a digit. (cherry picked from commit da8825ea95a7096bb4f933d33b212a94ade10f6e) Co-authored-by: Zhikang Yan <2951256653@qq.com>
* [3.12] gh-128078: Clear exception in `anext` before calling ↵Miss Islington (bot)2025-01-131-0/+17
| | | | | | | | | `_PyGen_SetStopIterationValue` (GH-128780) (#128784) gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationValue` (GH-128780) (cherry picked from commit 76ffaef729c91bb79da6df2ade48f3ec51118300) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* [3.12] gh-128734: Explicitly close sockets in urllib tests (GH-128735) ↵Serhiy Storchaka2025-01-124-19/+37
| | | | | (GH-128750) (cherry picked from commit 5ace71713b03cb37d829f50c849a8bb8a518738d)
* [3.12] gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) (#128583)Miss Islington (bot)2025-01-111-0/+88
| | | | | | | | | | | | gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) * Allow DOMParser.parse() to correctly handle DOMInputSource instances that only have a systemId attribute set. * Fix DOMEntityResolver.resolveEntity(), which was broken by the Python 3.0 transition. * Add Lib/test/test_xml_dom_xmlbuilder.py with few tests. (cherry picked from commit 6ea04da27036eaa69d65150148bb8c537d9beacf) Co-authored-by: Stephen Morton <git@tungol.org>
* [3.12] gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` ↵Miss Islington (bot)2025-01-081-0/+12
| | | | | | (GH-128616) (#128626) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.12] gh-41872: Fix quick extraction of module docstrings from a file in ↵Miss Islington (bot)2025-01-081-0/+77
| | | | | | | | | | | | pydoc (GH-127520) (GH-128621) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. (cherry picked from commit 474e419792484d1c16e7d9c99b7bf144136b9307) Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-128613: Increase `typing.Concatenate` coverage (GH-128614) (#128624)Miss Islington (bot)2025-01-081-0/+12
| | | | | | gh-128613: Increase `typing.Concatenate` coverage (GH-128614) (cherry picked from commit eb26e170695f15714b5e2ae0c0b83aa790c97869) Co-authored-by: sobolevn <mail@sobolevn.me>
* [3.12] gh-123085: Remove double 'import os' added by PR #124021 (#128600)Erlend E. Aasland2025-01-081-1/+0
| | | gh-123085: Remove double 'import os' added by PR #124021
* [3.12] gh-98188: Fix EmailMessage.get_payload to decode data when CTE value ↵Miss Islington (bot)2025-01-072-0/+49
| | | | | | | | | | | | | | | | has extra text (GH-127547) (#128529) gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (GH-127547) Up to this point message handling has been very strict with regards to content encoding values: mixed case was accepted, but trailing blanks or other text would cause decoding failure, even if the first token was a valid encoding. By Postel's Rule we should go ahead and decode as long as we can recognize that first token. We have not thought of any security or backward compatibility concerns with this fix. This fix does introduce a new technique/pattern to the Message code: we look to see if the header has a 'cte' attribute, and if so we use that. This effectively promotes the header API exposed by HeaderRegistry to an API that any header parser "should" support. This seems like a reasonable thing to do. It is not, however, a requirement, as the string value of the header is still used if there is no cte attribute. The full fix (ignore any trailing blanks or blank-separated trailing text) applies only to the non-compat32 API. compat32 is only fixed to the extent that it now ignores trailing spaces. Note that the HeaderRegistry parsing still records a HeaderDefect if there is extra text. (cherry picked from commit a62ba52f1439c1f878a3ff9b8544caf9aeef9b90) Co-authored-by: RanKKI <hliu86.me@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.12] gh-123085: _compile_importlib: Avoid copying sources before ↵Miss Islington (bot)2025-01-071-8/+7
| | | | | | | | | compilation (GH-124131) (GH-128581) gh-123085: _compile_importlib: Avoid copying sources before compilation (GH-124131) (cherry picked from commit 42c8b0556c02d29e32f4c7c95e7128a343716250) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.12] gh-123085: Fix issue in inferred caller when resources package has no ↵Jason R. Coombs2025-01-051-2/+44
| | | | | | | | source (GH-123102) (#124021) gh-123085: Fix issue in inferred caller when resources package has no source. From importlib_resources 6.4.3 (python/importlib_resourcesGH-314). (cherry picked from commit a53812df126b99bca25187441a123c7785ee82a0)
* [3.12] gh-127903: Fix a crash on debug builds when calling ↵Miss Islington (bot)2025-01-031-0/+7
| | | | | | | | `Objects/unicodeobject::_copy_characters` (GH-127876) (#128459) gh-127903: Fix a crash on debug builds when calling `Objects/unicodeobject::_copy_characters`` (GH-127876) (cherry picked from commit 46cb6340d7bad955edfc0a20f6a52dabc03b0932) Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
* [3.12] gh-128014: Fix passing default='' to the tkinter method ↵Serhiy Storchaka2025-01-021-1/+30
| | | | | | | wm_iconbitmap() (GH-128015) (GH-128420) (cherry picked from commit 58e9f95c4aa970db32a94b9152b51ede22f823bd) Co-authored-by: Zhikang Yan <2951256653@qq.com>
* [3.12] gh-88834: Unify the instance check for typing.Union and ↵Miss Islington (bot)2024-12-311-2/+73
| | | | | | | | | types.UnionType (GH-128363) (GH-128371) Union now uses the instance checks against its parameters instead of the subclass checks. (cherry picked from commit b2ac70a62ad1be8e037ce45ccf5f1b753ea5e64b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-127586: multiprocessing.Pool does not properly restore blocked ↵Miss Islington (bot)2024-12-291-0/+21
| | | | | | | | | | | | | | | | | | signals (try 2) (GH-128011) (#128299) gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011) Correct pthread_sigmask in resource_tracker to restore old signals Using SIG_UNBLOCK to remove blocked "ignored signals" may accidentally cause side effects if the calling parent already had said signals blocked to begin with and did not intend to unblock them when creating a pool. Use SIG_SETMASK instead with the previous mask of blocked signals to restore the original blocked set. (cherry picked from commit aeb9b65aa26444529e4adc7d6e5b0d3dd9889ec2) Co-authored-by: Stephen Hansen <stephen.paul.hansen@gmail.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.12] gh-127537: Add __class_getitem__ to the python implementation of ↵Shantanu2024-12-271-0/+7
| | | | | | | | | functools.partial (#127537) (#128282) gh-127537: Add __class_getitem__ to the python implementation of functools.partial (#127537) (cherry picked from commit 401bba6b58497ce59e7b45ad33e43ae8c67abcb9) Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
* [3.12] gh-127847: Fix position in the special-cased zipfile seek (GH-127856) ↵Miss Islington (bot)2024-12-241-0/+12
| | | | | | | | | | | | | (#128226) gh-127847: Fix position in the special-cased zipfile seek (GH-127856) --------- (cherry picked from commit 7ed6c5c6961d0849f163d4d449fb36bae312b6bc) Co-authored-by: Dima Ryazanov <dima@bucket.xxx> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* [3.12] gh-128049: Fix type confusion bug with the return value of a custom ↵Miss Islington (bot)2024-12-201-0/+43
| | | | | | | | ExceptionGroup split function (GH-128079) (#128140) gh-128049: Fix type confusion bug with the return value of a custom ExceptionGroup split function (GH-128079) (cherry picked from commit 3879ca0100942ae15a09ac22889cbe3e46d424eb) Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
* [3.12] gh-128116: Skip test_socket VSOCK testStream() on PermissionError ↵Miss Islington (bot)2024-12-201-1/+4
| | | | | | | | (GH-128120) (#128124) gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (cherry picked from commit cbfe3023e46b544b80ea1a38a8c900c6fb881554) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.12] gh-126742: Avoid checking for library filename in test_ctypes ↵Miss Islington (bot)2024-12-181-12/+5
| | | | | | | | | | (GH-128034) (#128057) gh-126742: Avoid checking for library filename in test_ctypes (GH-128034) Avoid checking for library filename in `dlerror()` error messages of test_ctypes. (cherry picked from commit 335e24fb0a5805ac1ecdbc01e0331b38fc33849d) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.12] gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror ↵Bénédikt Tran2024-12-172-15/+87
| | | | | | | | | messages (GH-126746) (GH-128027) - Add a helper to set an error from locale-encoded `char*` - Use the helper for gdbm & dlerror messages Co-authored-by: Victor Stinner <vstinner@python.org>