Skip to content

unable to turn off ellipses in stack traces #2871

Closed
@smurfix

Description

@smurfix

Even when using py.test -vvvv, variables in stack traces are ellipsized when their representation gets "too long".

This is controlled by hard coded constants in py._io.saferepr.py::saferepr() (and more constants in Python's reprlib, which it inherits from), which is called from multiple locations in py._code/code.py.

Proposed solution: use pretty printing instead, at high verbosity levels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wanteddevelopers would like help from experts on this topictopic: tracebacksrelated to displaying and handling of tracebackstype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions