Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not change PYTHONPATH or sys.path on workers #397

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

nicoddemus
Copy link
Member

Based on: #396

Fix #376

channel = channel # noqa
workerinput, args, option_dict = channel.receive()
importpath = os.getcwd()
sys.path.insert(0, importpath) # XXX only for remote situations
os.environ["PYTHONPATH"] = (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only after archeology ^^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

The only archaeology I could find is this one: #376 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d81ffaa

based on this not having it breaks remote workers, and tox is completely unusable to feed those as tox never got that part done

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets limit the path chnges explicitly to execnet specs where popen is none

@nicoddemus nicoddemus force-pushed the do-not-change-pythonpath branch from 94a35b2 to f8d51aa Compare January 9, 2019 13:15
@nicoddemus nicoddemus merged commit 76075f5 into pytest-dev:master Jan 9, 2019
@nicoddemus nicoddemus deleted the do-not-change-pythonpath branch January 9, 2019 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants