summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ast
Commit message (Collapse)AuthorAgeFilesLines
* gh-127146: Emscripten: Skip segfaults in test suite (#127151)Hood Chatham2024-12-051-1/+4
| | | | Added skips for tests known to cause problems when running on Emscripten. These mostly relate to the limited stack depth on Emscripten.
* gh-126105: Fix crash in `ast` module, when `._fields` is deleted (#126115)sobolevn2024-10-291-0/+17
| | | | Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
* GH-125837: Split `LOAD_CONST` into three. (GH-125972)Mark Shannon2024-10-291-2/+2
| | | | | | | | * Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
* gh-125900: Clean-up logic around immortalization in free-threading (#125901)Sam Gross2024-10-241-1/+1
| | | | | | | | | * Remove `@suppress_immortalization` decorator * Make suppression flag per-thread instead of per-interpreter * Suppress immortalization in `eval()` to avoid refleaks in three tests (test_datetime.test_roundtrip, test_logging.test_config8_ok, and test_random.test_after_fork). * frozenset() is constant, but not a singleton. When run multiple times, the test could fail due to constant interning.
* gh-125010: Fix `use-after-free` in AST `repr()` (#125015)Tomas R.2024-10-061-0/+7
|
* gh-116022: Improve `repr()` of AST nodes (#117046)Tomas R2024-09-182-2/+231
| | | | | | Co-authored-by: AN Long <aisk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-123344: Add missing ast optimizations for PEP 696 (#123377)Bogdan Romanyuk2024-08-281-9/+95
| | | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-122666: Tests for ast optimizations (#122667)Kirill Podoprigora2024-08-262-1/+213
| | | | | Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Fix typos in comments and test code (#122846)Xie Yanbo2024-08-121-3/+3
|
* gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of files (#122293)Kirill Podoprigora2024-07-294-0/+3661