summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-47205: Skip error check of sched_get/setaffinity on FreeBSD (GH-32285)Miss Islington (bot)2022-04-031-2/+6
| | | | | (cherry picked from commit b82cdd1dac9a9be52051abd90a1ce69236ac41f4) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-47089: Avoid test_compileall failures on Windows (GH-32037). ↵Jeremy Kloth2022-04-021-49/+36
| | | | | | | | (GH-32240) * [3.9] bpo-47089: Avoid test_compileall failures on Windows (GH-32037). (cherry picked from commit 76b8a075b8a79b08468fd0ed06a489a5c815bc11) Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
* Fix typo in the sqlite3 docs (GH-31915) (GH-32158)Miss Islington (bot)2022-03-291-1/+1
| | | | | | Co-authored-by: Jonathan <89750679+AHypnotoad@users.noreply.github.com> (cherry picked from commit 66584c890d016e40d707400130d1cd98f2aedde9) Co-authored-by: Jonathan <jonathan.joyner94@gmail.com>
* bpo-27929: resolve names only for AF_INET/AF_INET6 with asyncio (GH-32131)Miss Islington (bot)2022-03-281-1/+2
| | | | | | Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 5c30388f3c586ba2f33e349e22e5949cb92de621) Co-authored-by: Vincent Bernat <vincent@bernat.ch>
* Python 3.9.12v3.9.12Łukasz Langa2022-03-231-37/+41
|
* bpo-47101: list only activated algorithms in hashlib.algorithms_available ↵Miss Islington (bot)2022-03-231-0/+4
| | | | | | | (GH-32076) (cherry picked from commit 48e2010d92076b472922fa632fffc98ee150004f) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-2604: Make doctest.DocTestCase reset globs in teardown (GH-31932)Miss Islington (bot)2022-03-222-0/+19
| | | | | | | | Co-authored-by: Piet Delport Co-authored-by: Hugo Lopes Tavares Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 7ba7eae50803b11766421cb8aae1780058a57e2b) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578)Jeremy Kloth2022-03-222-183/+117
| | | | | | | Replace the child process `typeperf.exe` with a daemon thread that reads the performance counters directly. This prevents the issues that arise from inherited handles in grandchild processes (see issue37531 for discussion). We only use the load tracker when running tests in multiprocess mode. This prevents inadvertent interactions with tests expecting a single threaded environment. Displaying load is really only helpful for buildbots running in multiprocess mode anyway.. Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
* [3.9] bpo-45997: Fix asyncio.Semaphore re-acquiring order (GH-31910) (GH-32049)Andrew Svetlov2022-03-222-6/+35
| | | | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>. (cherry picked from commit 32e77154ddfc514a3144d5912bffdd957246fd6c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013) (GH-32015)Gregory P. Smith2022-03-211-0/+10
| | | | | | | Inputs >= 4GiB to `binascii.crc32(...)` when compiled to use the zlib crc32 implementation (the norm on POSIX) no longer return the wrong result. (cherry picked from commit 4c989e19c84ec224655bbbde9422e16d4a838a80)
* bpo-42369: Fix thread safety of zipfile._SharedFile.tell (GH-26974)Miss Islington (bot)2022-03-201-1/+3
| | | | | | | | | | | | | The `_SharedFile` tracks its own virtual position into the file as `self._pos` and updates it after reading or seeking. `tell()` should return this position instead of calling into the underlying file object, since if multiple `_SharedFile` instances are being used concurrently on the same file, another one may have moved the real file position. Additionally, calling into the underlying `tell` may expose thread safety issues in the underlying file object because it was called without taking the lock. (cherry picked from commit e730ae7effe4f13b24f1b5fb1fca005709c86acb) Co-authored-by: Kevin Mehall <km@kevinmehall.net>
* [3.9] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). ↵Miss Islington (bot)2022-03-193-10/+82
| | | | | | | (GH-31976) (GH-31981) (cherry picked from commit cd44afc573e2e2de8d7e5a9119c347373066cd10) (cherry picked from commit a5b7678a67ac99edd50822827b772e7d9afc8e64)
* bpo-39394: Improve warning message in the re module (GH-31988)Miss Islington (bot)2022-03-192-4/+9
| | | | | | | A warning about inline flags not at the start of the regular expression now contains the position of the flag. (cherry picked from commit 4142961b9f5ad3bf93976a6a7162f8049e354018) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-14156: Make argparse.FileType work correctly for binary file modes ↵Serhiy Storchaka2022-03-182-17/+106
| | | | | | | | | | when argument is '-' (GH-13165) (GH-31979) Also made modes containing 'a' or 'x' act the same as a mode containing 'w' when argument is '-' (so 'a'/'x' return sys.stdout like 'w', and 'ab'/'xb' return sys.stdout.buffer like 'wb'). (cherry picked from commit eafec26ae5327bb23b6dace2650b074c3327dfa0) Co-authored-by: MojoVampire <shadowranger+github@gmail.com>
* [3.9] bpo-46421: Fix unittest filename evaluation when called as a module ↵Miss Islington (bot)2022-03-182-1/+12
| | | | | | | | (GH-30654) (GH-31970) (cherry picked from commit a0db11b10fca0fee6bb2b8d6277e266bad8c0fdb) Co-authored-by: Bader Zaidan <bader@zaidan.pw>
* [3.9] bpo-42782: fix broken shutil test (GH-31971)Jelle Zijlstra2022-03-181-3/+3
| | | | | We were using os_helper, which doesn't exist on 3.9. This wasn't caught because the test is only run as root. I confirmed that when run as root, the test previously failed and now passes.
* bpo-45979: Fix Tkinter tests with old Tk (>= 8.5.12) (GH-31938)Miss Islington (bot)2022-03-172-3/+5
| | | | | (cherry picked from commit dbbe4d2d0075fa0e95b069fb4780d79aae3514c7) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-47038: Increase a test timeout for slow CI machines (GH-31951)Miss Islington (bot)2022-03-171-1/+1
| | | | | (cherry picked from commit a7c54148322781cb0f332d440a3454d550ef6414) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-47038: Rewrite missed asyncio.wait_for test to use ↵Miss Islington (bot)2022-03-162-26/+24
| | | | | | | IsolatedAnsyncioTestCase (GH-31946) (cherry picked from commit 3dd9bfac04d3dcdbfd3f8011a6c9d4b9ac8c116a) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.9] bpo-47038: Rewrite asyncio.wait_for test to use ↵Andrew Svetlov2022-03-163-340/+270
| | | | | | | IsolatedAsyncioTestCase (GH-31942). (GH-31944) (cherry picked from commit dd0082c627713634c7fd88ad33d18b5cc9f4a7b8) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.10] bpo-45382: test.pythoninfo logs more Windows versions (GH-30891) ↵Miss Islington (bot)2022-03-161-0/+42
| | | | | | | | | | | | | | | | | | (GH-30894) Add the following info to test.pythoninfo: * windows.ver: output of the shell "ver" command * windows.version and windows.version_caption: output of the "wmic os get Caption,Version /value" command. (cherry picked from commit b0898f4aa90d9397e23aef98a2d6b82445ee7455) * bpo-45382: test.pythoninfo: set wmic.exe encoding to OEM (GH-30890) (cherry picked from commit cef0a5458f254c2f8536b928dee25862ca90ffa6) (cherry picked from commit 4a57fa296b92125e41220ecd201eb2e432b79fb0) Co-authored-by: Victor Stinner <vstinner@python.org>
* Python 3.9.11Łukasz Langa2022-03-151-78/+100
|
* bpo-20392: Fix inconsistency with uppercase file extensions in ↵Miss Islington (bot)2022-03-152-6/+11
| | | | | | | mimetypes.guess_type (GH-30229) (cherry picked from commit 5dd7ec52b83e7f239774cf7478106fcc7b0a36f3) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-43253: Don't call shutdown() for invalid socket handles (GH-31892)Miss Islington (bot)2022-03-152-1/+9
| | | | | (cherry picked from commit 70155412f1543f100d4aa309b8691cbcabd3e0e1) Co-authored-by: Maximilian Hils <git@maximilianhils.com>
* Revert "bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820)" (GH-31881)Ned Deily2022-03-143-2/+1
| | | | This reverts commit bda64b3c0c4e45de4c82ba1b8722f56db5ac88ba as it breaks test_bdb and test_distutils with installed Pythons.
* [3.9] bpo-47004: Sync with importlib_metadata 4.11.3. (GH-31854). (GH-31859)Jason R. Coombs2022-03-132-2/+21
| | | | | (cherry picked from commit b1e286860742e7ba6fadc75e3ddb6c2899a56919) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-46986: Upgrade bundled setuptools to 60.9.3 (GH-31820) (GH-31855)Ned Deily2022-03-133-1/+2
| | | | | (cherry picked from commit c99ac3c364ee21be72263791b71ee8b55f64de08) Co-authored-by: Pradyun Gedam <pgedam@bloomberg.net>
* [3.9] bpo-46985: Upgrade bundled pip to 22.0.4 (GH-31819) (GH-31850)Miss Islington (bot)2022-03-133-1/+1
| | | | | | | | (cherry picked from commit d87f1b787ed38dfd307d82452f2efe9dc5b93942) Co-authored-by: Pradyun Gedam <pgedam@bloomberg.net> Automerge-Triggered-By: GH:ned-deily
* [3.9] bpo-46198: rename duplicate tests and remove unused code (GH-30297) ↵Jelle Zijlstra2022-03-107-12/+6
| | | | | | | (GH-31797) (cherry picked from commit 6c83c8e6b56b57a8a794e7b6c07837be4ce3bb97) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-24959: fix unittest.assertRaises bug where traceback entries are dropped ↵Irit Katriel2022-03-082-14/+94
| | | | | from chained exceptions (GH-23688) (GH-31776) (cherry picked from commit 88b7d86a73da9388aa65c96401c2984c8c16f8db)
* bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)Miss Islington (bot)2022-03-081-1/+1
| | | | | | | | | This change aligns the documentation at https://docs.python.org/3/library/asyncio-eventloop.htmlGH-asyncio.Server with the actual implementation Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit da80d6b2f3beff519cb1457d5e055168c89f7224) Co-authored-by: Stefan Zabka <zabkaste@informatik.hu-berlin.de>
* bpo-44439: _ZipWriteFile.write() handle buffer protocol correctly (GH-29468)Miss Islington (bot)2022-03-082-1/+17
| | | | | | Co-authored-by: Marco Ribeiro <marcoffee@users.noreply.github.com> (cherry picked from commit 36dd7396fcd26d8bf9919d536d05d7000becbe5b) Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
* [3.9] bpo-43292: Fix file leak in `ET.iterparse()` when not exhausted ↵Miss Islington (bot)2022-03-072-7/+17
| | | | | | | | | (GH-31696) (GH-31720) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 496c428de3318c9c5770937491b71dc3d3f18a6a) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Lib/typing.py copy edits originating from GH-31061 (GH-31684)Miss Islington (bot)2022-03-051-3/+3
| | | | | (cherry picked from commit 2031149b9a7dfab5f5bad63f417e19f4fc2b9661) Co-authored-by: Matt Bogosian <eb3f73+github+com@yaymail.com>
* bpo-25415: Remove confusing sentence from IOBase docstrings (PR-31631)Miss Islington (bot)2022-03-041-3/+2
| | | | | (cherry picked from commit cedd2473a9bebe07f3ced4f341cf58a2fef07b03) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* bpo-46913: Fix test_ctypes, test_hashlib, test_faulthandler on UBSan ↵Victor Stinner2022-03-042-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-31675) (GH-31676) * bpo-46913: Fix test_faulthandler.test_sigfpe() on UBSAN (GH-31662) Disable undefined behavior sanitizer (UBSAN) on faulthandler_sigfpe(). (cherry picked from commit 4173d677a1d7c72bb32d292fbff1b4cf073d615c) * bpo-46913: Fix test_faulthandler.test_read_null() on UBSan (GH31672) Disable undefined behavior sanitizer (UBSan) on faulthandler._read_null(). (cherry picked from commit 65b92ccdec2ee4a99e54aaf7ae2d9bbc2ebfe549) * bpo-46913: test_hashlib skips _sha3 tests on UBSan (GH-31673) If Python is built with UBSan, test_hashlib skips tests on the _sha3 extension which currently has undefined behaviors. This change allows to run test_hashlib to check for new UBSan regression, but the known _sha3 undefined behavior must be fixed. (cherry picked from commit 6d0d7d2b8c1e04fd51c6cb29cc09a41b60b97b7b) * bpo-46913: Skip test_ctypes.test_shorts() on UBSan (GH-31674) If Python is built with UBSan, test_ctypes now skips test_shorts(). This change allows to run test_ctypes to check for new UBSan regression, but the known test_shorts() undefined behavior must be fixed. (cherry picked from commit ad1b04451d3aca2c6fa6dbe2891676a4e0baac49) (cherry picked from commit 7b5b429adab4fe0fe81858fe3831f06adc2e2141)
* [3.10] bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) ↵Victor Stinner2022-03-0214-52/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-31634) (GH-31644) * Refactor sanitiser skip tests into test.support (GH-30889) * Refactor sanitizer skip tests into test.support (cherry picked from commit b1cb8430504931f7854eac5d32cba74770078a4e) * Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) (cherry picked from commit a27505345e34d462139f5f8b6b5e7c9a59955150) * bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) Skip tests on ASAN and/or MSAN builds: * multiprocessing tests * test___all__ * test_concurrent_futures * test_decimal * test_peg_generator * test_tools (cherry picked from commit 9204bb72a2da5885facc747e63d2bd2d654606fe) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> (cherry picked from commit 93264452d952d9ba604bacf2947c2df5dd477931)
* [3.9] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030) ↵Erlend Egeberg Aasland2022-03-021-61/+65
| | | | | (GH-31586) (cherry picked from commit 3eb3b4f270757f66c7fb6dcf5afa416ee1582a4b)
* bpo-46756: Fix authorization check in urllib.request (GH-31353)Miss Islington (bot)2022-02-252-8/+25
| | | | | | | | | Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which allowed to bypass authorization. For example, access to URI "example.org/foobar" was allowed if the user was authorized for URI "example.org/foo". (cherry picked from commit e2e72567a1c94c548868f6ee5329363e6036057a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Inherit asyncio proactor datagram transport from asyncio.DatagramTransport ↵Miss Islington (bot)2022-02-232-1/+3
| | | | | | | (GH-31512) (cherry picked from commit cff4d5c5d29528299ec1ac5b3b3a6f7735577c01) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499)Miss Islington (bot)2022-02-222-1/+21
| | | | | | | | Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31469)Miss Islington (bot)2022-02-212-8/+15
| | | | | | | | | | | | | | | | | | | | | Curly brackets were never allowed in namespace URIs according to RFC 3986, and so-called namespace-validating XML parsers have the right to reject them a invalid URIs. libexpat >=2.4.5 has become strcter in that regard due to related security issues; with ET.XML instantiating a namespace-aware parser under the hood, this test has no future in CPython. References: - https://datatracker.ietf.org/doc/html/rfc3968 - https://www.w3.org/TR/xml-names/ Also, test_minidom.py: Support Expat >=2.4.5 (cherry picked from commit 2cae93832f46b245847bdc252456ddf7742ef45e) Co-authored-by: Sebastian Pipping <sebastian@pipping.org> Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
* bpo-39327: Close file descriptors as soon as possible in shutil.rmtree ↵Miss Islington (bot)2022-02-211-2/+10
| | | | | | | | | | | (GH-31384) It fixes the "Text File Busy" OSError when using 'rmtree' on a windows-managed filesystem in via the VirtualBox shared folder (and possible other scenarios like a windows-managed network file system). (cherry picked from commit b77158b4da449ec5b8f682816a79d004fd65ed07) Co-authored-by: Lital Natan <litaln@gmail.com>
* replace `self` param with more appropriate `cls` in classmethods (GH-31402) ↵Miss Islington (bot)2022-02-211-2/+2
| | | | | | | | | (#31445) (cherry picked from commit a3fcca4af1cb418dc802feb75100ecc1a286afaa) Co-authored-by: Josh Smith <cmyuiosu@gmail.com> Co-authored-by: Josh Smith <cmyuiosu@gmail.com>
* [3.9] Raise TypeError if SSLSocket is passed to asyncio transport-based ↵Andrew Svetlov2022-02-202-10/+20
| | | | | | | methods (GH-31442) (GH-31444) (cherry picked from commit 1f9d4c93af380d00bf2e24bc5f5ce662d41504aa) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* [3.9] bpo-46672: fix `NameError` in `asyncio.gather` if type check fails ↵Andrew Svetlov2022-02-202-1/+21
| | | | | (GH-31187) (GH-31441) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Fix mistake in barry_as_FLUFL test (GH-31392)Miss Islington (bot)2022-02-181-1/+1
| | | | | | Use assertEqual(), not assertTrue(lineno, 2) (cherry picked from commit 5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66) Co-authored-by: Patrick Reader <_@pxeger.com>
* bpo-46333: Honor `module` parameter in ForwardRef (GH-30536)Miss Islington (bot)2022-02-172-2/+15
| | | | | | | | | | | | The `module` parameter carries semantic information about the forward ref. Forward refs are different if they refer to different module even if they have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods. Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 6e7b813195f9bd6a2a15c1f00ef2c0180f6c751a) Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>
* bpo-46762: Fix an assert failure in f-strings where > or < is the last ↵Miss Islington (bot)2022-02-161-0/+2
| | | | | | | character if the f-string is missing a trailing right brace. (GH-31365) (cherry picked from commit ffd9f8ff84ed53c956b16d027f7d2926ea631051) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* bpo-46741: Update `asyncio.protocols.BufferedProtocol` docstring (31327)Miss Islington (bot)2022-02-151-4/+0
| | | | | | The docstring for `BufferedProtocol` states that the class is still an "experimental API", but it has been considered stable since 3.8. (cherry picked from commit 1d81fdc4c004511c25f74db0e04ddbbb8a04ce6d) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>