Skip to content

--tb=short option ignored when combined with -n2 and --looponfail #767

@Jasha10

Description

@Jasha10

Pytest's --tb=short option is ignored when combined with the --looponfail and -n2 options of pytest-xdist.

To reproduce:

# foo.py
def a():
    b()

def b():
    c()

def c():
    assert False
# test_foo.py
from foo import a
def test_foo():
    a()
$ pytest --tb=short -n2 --looponfail test_foo.py
...  # long-style traceback displayed, --tb=short option ignored.

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