aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_syntax.py
Commit message (Collapse)AuthorAge
* gh-134036: Update test_syntax for gh-133999 (#135204)Victor Stinner15 hours
|
* gh-134036: Improve error messages for invalid `raise` statements (#134077)sobolevn26 hours
|
* gh-133999: Fix `except` parsing regression in 3.14 (#134035)sobolevn2025-05-17
|
* gh-133379: Fix misuse of the term "arguments" in error messages (GH-133382)Stan Ulbrych2025-05-10
| | | The right term is "parameters".
* gh-133197: Improve error message for incompatible string / bytes prefixes ↵sobolevn2025-05-02
| | | | (#133242)
* gh-123539: Improve SyntaxError msg for `import as` with not a name (#123629)sobolevn2025-05-02
|
* gh-133197: Improve error message for `ft""` and `bt""` cases (#133202)sobolevn2025-04-30
|
* gh-132661: Implement PEP 750 (#132662)Lysandros Nikolaou2025-04-30
| | | | | | | | | | | | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Wingy <git@wingysam.xyz> Co-authored-by: Koudai Aono <koxudaxi@gmail.com> Co-authored-by: Dave Peck <davepeck@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Paul Everitt <pauleveritt@me.com> Co-authored-by: sobolevn <mail@sobolevn.me>
* gh-129858: Special syntax error for `elif` block after `else` (#129902)Steele Farnsworth2025-04-25
|
* gh-132449: Improve the algorithm to detect typos in keywords (#132837)Pablo Galindo Salgado2025-04-23
|
* gh-132449: Improve syntax error messages for keywords with typos (#132450)Pablo Galindo Salgado2025-04-22
| | | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-128632: fix segfault on nested __classdict__ type param (#128744)Tomasz Pytel2025-04-04
|
* GH-131770: increase assumed WASI stack size to 131072 (wasi-sdk default) ↵Filipe Laíns 🇵🇸2025-04-04
| | | | | | | (#131844) https://github.com/WebAssembly/wasi-libc/blob/e9524a0980b9bb6bb92e87a41ed1055bdda5bb86/libc-top-half/musl/src/internal/pthread_impl.h#L220 Signed-off-by: Filipe Laíns <lains@riseup.net>
* gh-131831: Implement PEP 758 – Allow except and except* expressions ↵Pablo Galindo Salgado2025-04-01
| | | | without parentheses (#131833)
* gh-130080: implement PEP 765 (#130087)Irit Katriel2025-03-17
|
* gh-129515: Clarify syntax error messages for conditional expressions (#129880)Sergey Miryanov2025-02-18
| | | | | Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-88535: Improve syntax error for wrongly closed strings (#26633)Pablo Galindo Salgado2025-02-13
|
* gh-123562: Improve `SyntaxError` message for `case ... as a.b` (#123563)sobolevn2024-09-02
|
* gh-123440: Improve error message for `except as` used with not a name (#123442)sobolevn2024-08-30
|
* gh-122245: Add test case of generic type with __debug__ (#122322)Irit Katriel2024-07-26
|
* gh-122245: move checks for writes and shadowing of __debug__ to symtable ↵Irit Katriel2024-07-26
| | | | (#122246)
* gh-119933: Improve ``SyntaxError`` message for invalid type parameters ↵Bénédikt Tran2024-06-17
| | | | | expressions (#119976) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-119724: Revert "bpo-45759: Better error messages for non-matching ↵Petr Viktorin2024-06-03
| | | | | | 'elif'/'else' statements (#29513)" (#119974) This reverts commit 1c8f912ebdfdb146cd7dd2d7a3a67d2c5045ddb0.
* gh-118090: Improve error message for empty type param brackets (GH-118091)Nikita Sobolev2024-05-07
|
* gh-116767: fix crash on 'async with' with many context managers (GH-118348)Irit Katriel2024-05-01
| | | | | | | Account for `add_stopiteration_handler` pushing a block for `async with`. To allow generator functions that previously almost hit the `CO_MAXBLOCKS` limit by nesting non-async blocks, the limit is increased by 1. This increase allows one more block in non-generator functions.
* gh-118082: Improve `import` without names syntax error message (#118083)Nikita Sobolev2024-04-23
|
* gh-109120: Fix syntax error in handlinh of incorrect star expressions (#117444)Grigoriev Semyon2024-04-02
|
* bpo-24612: Improve syntax error for 'not' after an operator (GH-28170)Pablo Galindo Salgado2024-03-26
| | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* gh-111488: Changed error message in case of no 'in' keyword after 'for' in ↵Grigoriev Semyon2024-01-06
| | | | cmp (#113656)
* gh-113602: Bail out when the parser tries to override existing errors (#113607)Pablo Galindo Salgado2024-01-02
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-113297: Fix segfault in compiler for with statement with 19 context ↵Irit Katriel2023-12-22
| | | | managers (#113327)
* Fix SyntaxWarning in test_syntax.py (GH-112944)Anthony Sottile2023-12-11
|
* gh-112387: Fix error positions for decoded strings with backwards tokenize ↵Pablo Galindo Salgado2023-11-27
| | | | | errors (#112409) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-112388: Fix an error that was causing the parser to try to overwrite ↵Pablo Galindo Salgado2023-11-27
| | | | | tokenizer errors (#112410) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* bpo-45759: Better error messages for non-matching 'elif'/'else' statements ↵Crowthebird2023-11-20
| | | | (#29513)
* gh-100445: Improve error message for unterminated strings with escapes (#100446)Shantanu2023-10-18
|
* gh-110938: More syntax tests for PEP695 funcs and classes (#110986)Nikita Sobolev2023-10-17
|
* gh-110938: Fix error messages for indented blocks with functions and classes ↵Pablo Galindo Salgado2023-10-17
| | | | with generic type parameters (#110973)
* gh-110696: Fix incorrect syntax error message for incorrect argument ↵Pablo Galindo Salgado2023-10-12
| | | | unpacking (#110706)
* gh-108179: Add error message for parser stack overflows (#108256)Dennis Sweeney2023-08-22
|
* gh-98931: Add custom error messages to invalid import/from with multiple ↵Pablo Galindo Salgado2023-06-22
| | | | | | targets (#105985) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-104572: Improve error messages for invalid constructs in PEP 695 contexts ↵Jelle Zijlstra2023-05-17
| | | | (#104573)
* gh-102310: Change error range for invalid bytes literals (#103663)Nikita Sobolev2023-04-22
|
* gh-101400: Fix incorrect lineno in exception message on continue/break which ↵Dong-hee Na2023-01-30
| | | | are not in a loop (#101413)
* gh-100050: Fix an assertion error when raising unclosed parenthesis errors ↵Pablo Galindo Salgado2022-12-06
| | | | | in the tokenizer (GH-100065) Automerge-Triggered-By: GH:pablogsal
* gh-90994: Improve error messages upon call arguments syntax errors (GH-96893)Lysandros Nikolaou2022-11-21
|
* gh-99211: Point to except/except* on syntax errors when mixing them (GH-99215)Lysandros Nikolaou2022-11-20
| | | Automerge-Triggered-By: GH:lysnikolaou
* gh-99153: set location on SyntaxError for try with both except and except* ↵Irit Katriel2022-11-06
| | | | (GH-99160)
* gh-98931: Improve error message when the user types 'import x from y' ↵Pablo Galindo Salgado2022-11-01
| | | | instead of 'from y import x' (#98932)
* gh-91210: Improve error message when non-default param follows default ↵Lysandros Nikolaou2022-09-17
| | | | | | (GH-95933) - Improve error message when parameter without a default follows one with a default - Show same error message when positional-only params precede the default/non-default sequence