Skip to content

Emscriptem example is broken #137672

@VbhvGupta

Description

@VbhvGupta

await xtermInput.pressSequentially(`def f():\nprint("hello", "emscripten repl!")\n\n`);

  • In Python, the line after a def f(): must be indented.
    def f():\nprint("hello", "emscripten repl!")\n\n
  • Because the print() statement is not indented, it is a guaranteed IndentationError.
  • The test is fundamentally broken and can never pass as it's currently written.

FIX:

await repl.enter("def f():\n  print(\"hello\", \"emscripten repl!\")\n\n");

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-emscripteninvalidpendingThe issue will be closed if no feedback is providedtriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions