Skip to content

Add a full stacktrace to doctest tests. #2233

Open
@mateofio

Description

@mateofio

When you fail a doctest test, the current line is printed. If you reuse a function between tests, it's harder to know which test is failing.

It looks like doctest throws a TestFailureException which is an empty class.

We could add a constructor to this class which calls libunwind if it's compiled in and prints a runtime stack trace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions