Skip to content

Concatenation with empty string is not parsed idempotently #126

@greg-at-moderne

Description

@greg-at-moderne

Steps to reproduce

Using current main (da16633) the following test:

def test_concatenation_with_empty_string():
  # language=python
  rewrite_run(python('print("alef" "")'))

fails with:

Expected :'print("alef" "")'
Actual   :'print("alef" )'

AFAICT this is valid Python code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpython

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions