Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-109959: Skip test_glob.test_selflink() flaky test (#128812) | Victor Stinner | 2025-01-14 | 1 | -0/+4 |
| | |||||
* | gh-71339: Add additional assertion methods for unittest (GH-128707) | Serhiy Storchaka | 2025-01-14 | 16 | -98/+338 |
| | | | | | | | | | | | | Add the following methods: * assertHasAttr() and assertNotHasAttr() * assertIsSubclass() and assertNotIsSubclass() * assertStartsWith() and assertNotStartsWith() * assertEndsWith() and assertNotEndsWith() Also improve error messages for assertIsInstance() and assertNotIsInstance(). | ||||
* | gh-125997: Increase test coverage for `time.sleep()` (#128751) | Bénédikt Tran | 2025-01-13 | 1 | -2/+11 |
| | | | | | | | | | - 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. --------- Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-128562: Fix generation of the tkinter widget names (GH-128604) | Zhikang Yan | 2025-01-13 | 1 | -1/+9 |
| | | | | There were possible conflicts if the widget class name ends with a digit. | ||||
* | gh-128078: Use `PyErr_SetRaisedException` in `_PyGen_SetStopIterationValue` ↵ | Bénédikt Tran | 2025-01-13 | 1 | -1/+1 |
| | | | | | (#128287) Co-authored-by: Kumar Aditya <kumaraditya@python.org> | ||||
* | gh-128002: add more thread safety tests for asyncio (#128480) | Kumar Aditya | 2025-01-13 | 1 | -0/+54 |
| | |||||
* | gh-128400: Only show the current thread in `Py_FatalError` on the ↵ | Peter Bierma | 2025-01-13 | 2 | -12/+16 |
| | | | | free-threaded build (#128758) | ||||
* | gh-128182: Add per-object memory access synchronization to `ctypes` (GH-128490) | Peter Bierma | 2025-01-13 | 1 | -1/+21 |
| | |||||
* | gh-127773: Disable attribute cache on incompatible MRO entries (GH-127924) | Petr Viktorin | 2025-01-13 | 1 | -0/+27 |
| | |||||
* | gh-128078: Clear exception in `anext` before calling ↵ | Bénédikt Tran | 2025-01-13 | 1 | -0/+17 |
| | | | | | `_PyGen_SetStopIterationValue` (#128780) Co-authored-by: Kumar Aditya <kumaraditya@python.org> | ||||
* | GH-128682: Stronger checking of `PyStackRef_CLOSE` and `DEAD`. (GH-128683) | Mark Shannon | 2025-01-13 | 1 | -0/+12 |
| | |||||
* | GH-124483: Mark `Py_DECREF`, etc. as escaping for the JIT (GH-128678) | Mark Shannon | 2025-01-13 | 1 | -0/+19 |
| | |||||
* | gh-128595: Add test class helper to force no terminal colour (#128687) | Hugo van Kemenade | 2025-01-13 | 5 | -22/+49 |
| | | | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | GH-128685: Specialize (rather than quicken) LOAD_CONST into ↵ | Mark Shannon | 2025-01-13 | 1 | -2/+2 |
| | | | | LOAD_CONST_[IM]MORTAL (GH-128708) | ||||
* | gh-128690: temporarily do not use test_embed in PGO profile builds (#128771) | Ned Deily | 2025-01-13 | 1 | -1/+0 |
| | | | Temporarily do not use test_embed in PGO profile builds until the problem with test_init_pyvenv_cfg failing in some configurations is resolved. | ||||
* | gh-128717: Stop-the-world when setting the recursion limit (#128741) | Peter Bierma | 2025-01-12 | 1 | -0/+15 |
| | |||||
* | gh-128734: Fix ResourceWarning in urllib tests (GH-128735) | Serhiy Storchaka | 2025-01-12 | 5 | -20/+40 |
| | |||||
* | gh-128729: Fix RuntimeWarning in test_unittest (GH-128730) | Serhiy Storchaka | 2025-01-12 | 1 | -0/+3 |
| | |||||
* | gh-128377: Skip `test_cmd_line.test_non_interactive_output_buffering` when ↵ | Yan Yanchii | 2025-01-12 | 1 | -0/+2 |
| | | | | | | | `PYTHONUNBUFFERED=1` (#128378) The `test_cmd_line.test_non_interactive_output_buffering` test assumes a buffered `stdio` without checking the `PYTHONUNBUFFERED` value. Instead of changing the environment variable for the duration of the test, it is better to simply skip it. | ||||
* | GH-128520: Divide pathlib ABCs into three classes (#128523) | Barney Gale | 2025-01-11 | 2 | -247/+243 |
| | | | | | | | | | | | | In the private pathlib ABCs, rename `PurePathBase` to `JoinablePath`, and split `PathBase` into `ReadablePath` and `WritablePath`. This improves the API fit for read-only virtual filesystems. The split of `PathBase` entails a similar split of `CopyWorker` (implements copying) and the test cases in `test_pathlib_abc`. In a later patch, we'll make `WritablePath` inherit directly from `JoinablePath` rather than `ReadablePath`. For a couple of reasons, this isn't quite possible yet. | ||||
* | gh-128438: Add `EnvironmentVarGuard` for `test_pdb.py` (#128522) | Yan Yanchii | 2025-01-11 | 1 | -15/+8 |
| | |||||
* | Make the Python CLI error message style more consistent (GH-128129) | 9cel | 2025-01-11 | 1 | -1/+1 |
| | |||||
* | gh-128694: Fix `(env changed)` error in `test_inspect` (#128702) | sobolevn | 2025-01-10 | 1 | -0/+5 |
| | |||||
* | gh-127196: Fix crash in `_interpreters`, when `shared` had invalid encodings ↵ | sobolevn | 2025-01-09 | 1 | -1/+12 |
| | | | | (#127220) | ||||
* | gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecation (#128663) | sobolevn | 2025-01-09 | 1 | -0/+46 |
| | | | gh-128661: Fix `typing.evaluate_forward_ref` not showing deprecataion | ||||
* | gh-128673: Increase coverage of `typing.get_type_hints` (#128674) | sobolevn | 2025-01-09 | 1 | -0/+19 |
| | |||||
* | gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630) | Petr Viktorin | 2025-01-09 | 2 | -0/+45 |
| | |||||
* | Remove unnecessary LIST_TO_TUPLE conversions (GH-126558) | Brandt Bucher | 2025-01-08 | 1 | -0/+51 |
| | |||||
* | gh-128615: Cover pickling of `ParamSpecArgs` and `ParamSpecKwargs` (#128616) | sobolevn | 2025-01-08 | 1 | -0/+12 |
| | |||||
* | gh-128613: Increase `typing.Concatenate` coverage (#128614) | sobolevn | 2025-01-08 | 1 | -0/+12 |
| | |||||
* | gh-128617: Fix `test_typing.test_readonly_inheritance` (#128618) | sobolevn | 2025-01-08 | 1 | -4/+4 |
| | |||||
* | gh-41872: Fix quick extraction of module docstrings from a file in pydoc ↵ | Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) | 2025-01-08 | 1 | -0/+77 |
| | | | | | | | | | (GH-127520) It now supports docstrings with single quotes, escape sequences, raw string literals, and other Python syntax. Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | GH-127809: Fix the JIT's understanding of ** (GH-127844) | Brandt Bucher | 2025-01-08 | 1 | -0/+44 |
| | |||||
* | gh-127350: Add more tests for Py_fopen() (GH-128587) | Serhiy Storchaka | 2025-01-07 | 1 | -4/+21 |
| | |||||
* | gh-115999: Add free-threaded specialization for COMPARE_OP (#126410) | T. Wouters | 2025-01-07 | 1 | -0/+33 |
| | | | | | Add free-threaded specialization for COMPARE_OP, and tests for COMPARE_OP specialization in general. Co-authored-by: Donghee Na <donghee.na92@gmail.com> | ||||
* | gh-128552: fix refcycles in eager task creation (#128553) | Thomas Grainger | 2025-01-07 | 1 | -4/+58 |
| | |||||
* | gh-128302: Fix bugs in xml.dom.xmlbuilder (GH-128284) | Stephen Morton | 2025-01-07 | 1 | -0/+88 |
| | | | | | | | | * 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. | ||||
* | gh-127146: Skip Emscripten tests with pending fixes (#128549) | Hood Chatham | 2025-01-06 | 6 | -1/+8 |
| | | | | Marks some additional tests as skipped on Emscripten. Many of these skips can be reverted when the next Emscripten release is available. | ||||
* | GH-128533: Add `NOT_TAKEN` instruction after bytecode optimization. (GH-128554) | Mark Shannon | 2025-01-06 | 2 | -126/+123 |
| | |||||
* | GH-128375: Better instrument for `FOR_ITER` (GH-128445) | Mark Shannon | 2025-01-06 | 4 | -205/+322 |
| | |||||
* | GH-128073: Include `EXIT_IF` when checking for escaping calls (GH-128537) | Mark Shannon | 2025-01-06 | 1 | -0/+25 |
| | |||||
* | gh-127350: Add Py_fopen() and Py_fclose() functions (#127821) | Victor Stinner | 2025-01-06 | 2 | -2/+68 |
| | |||||
* | gh-128340: add thread safe handle for `loop.call_soon_threadsafe` (#128369) | Kumar Aditya | 2025-01-06 | 1 | -0/+118 |
| | | | Adds `_ThreadSafeHandle` to be used for callbacks scheduled with `loop.call_soon_threadsafe`. | ||||
* | gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has ↵ | RanKKI | 2025-01-06 | 2 | -0/+49 |
| | | | | | | | | | | | extra text (#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. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | pathlib tests: create `walk()` test hierarchy without using class under test ↵ | Barney Gale | 2025-01-04 | 2 | -39/+58 |
| | | | | | | | | (#128338) In the tests for `pathlib.Path.walk()`, avoid using the path class under test (`self.cls`) in test setup. Instead we use `os` functions in `test_pathlib`, and direct manipulation of `DummyPath` internal data in `test_pathlib_abc`. | ||||
* | GH-127381: pathlib ABCs: remove `PathBase.move()` and `move_into()` (#128337) | Barney Gale | 2025-01-04 | 2 | -118/+118 |
| | | | | | These methods combine `_delete()` and `copy()`, but `_delete()` isn't part of the public interface, and it's unlikely to be added until the pathlib ABCs are made official, or perhaps even later. | ||||
* | gh-128152: Argument Clinic: ignore pre-processor directives inside C ↵ | Erlend E. Aasland | 2025-01-04 | 1 | -0/+10 |
| | | | | comments (#128464) | ||||
* | gh-128002: fix many thread safety issues in asyncio (#128147) | Kumar Aditya | 2025-01-04 | 1 | -0/+82 |
| | | | | | | * Makes `_asyncio.Task` and `_asyncio.Future` thread-safe by adding critical sections * Add assertions to check for thread safety checking locking of object by critical sections in internal functions * Make `_asyncio.all_tasks` thread safe when eager tasks are used * Add a thread safety test | ||||
* | gh-128400: Only show the current thread in `faulthandler` if the GIL is ↵ | Peter Bierma | 2025-01-03 | 1 | -2/+9 |
| | | | | disabled (GH-128425) | ||||
* | gh-127903: Fix a crash on debug builds when calling ↵ | Alexander Shadchin | 2025-01-03 | 1 | -0/+7 |
| | | | | `Objects/unicodeobject::_copy_characters`` (#127876) |