Skip to content

py.test not running any tests when using -n (xdist) #669

@pytestbot

Description

@pytestbot

Originally reported by: BitBucket: vmalloc, GitHub: vmalloc


When I run py.test without any arguments all my tests are running as expected:

$ py.test tests
========================================================= test session starts =========================================================
platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4
plugins: capturelog, xdist
collected 438 items
....... (omitted)

=============================================== 435 passed, 3 skipped in 33.90 seconds ================================================

However, when I pass -n 4, nothing gets actually run:

$ py.test -n 4 
========================================================= test session starts =========================================================
platform darwin -- Python 2.7.9 -- py-1.4.26 -- pytest-2.6.4
plugins: capturelog, xdist
gw0 [439] / gw1 [439] / gw2 [439] / gw3 [439]
scheduling tests via LoadScheduling

==========================================================  in 3.03 seconds ===========================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: parametrizerelated to @pytest.mark.parametrizetype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions