Skip to content

xdist adds current directory to sys.path #421

@ndevenish

Description

@ndevenish

With 1.26.1.

import sys

def test_path():
    assert "" not in sys.path
$ pytest test_path.py
<OK>
$ pytest test_path.py -n 1
E     AssertionError....

Obviously this can cause problems/change behaviour depending on where you are running the tests from.

Possibly related to #376?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions