Skip to content

Impossible testing with pexpect #594

@godzie44

Description

@godzie44

Platform linux
Terminal software pseudo terminal - python pty

I'm trying to write integration tests of reedline app with python pexpect lib, and, unfortunately, it's fail. Looks like problem in crossterm, but I'm not sure.

Steps to reproduce

This can be reproduced on basic example:

>>> import pexpect
>>> proc = pexpect.spawn("./target/debug/examples/basic")
>>> print(proc.readline())
b'\x1b[6nError: Custom { kind: Other, error: "The cursor position could not be read within a normal duration" }\r\n'

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-EventsArea: Handling of incoming events (e.g. desired keypress not registered)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions