Skip to content

Assume the current python executable is the one we should spawn. - #3450

Merged
mrocklin merged 1 commit into
dask:masterfrom
detrout:safer-http-server-spawn
Apr 29, 2018
Merged

mrocklin merged 1 commit into
dask:masterfrom
detrout:safer-http-server-spawn

Conversation

@detrout

@detrout detrout commented Apr 29, 2018

Copy link
Copy Markdown
Contributor

On Debian the Python executable is named python3, so the test fails
because it tries to run the Python 2 interpreter.

Using sys.executable should be the safest option as the test server
will be launched using the same interpreter that the test suite is
running under.

  • Tests added / passed (Tests pass with default Debian python interpreter.
  • Passes flake8 dask
  • Fully documented, including docs/source/changelog.rst for all changes
    and one of the docs/source/*-api.rst files for new API
    Not documented as there should be no visible change to anyone but people using system Python 3 interpreters on systems following the Python installation conventions for Unix like systems.

Improves #3449

On Debian the Python executable is named python3, so the test fails
because it tries to run the Python 2 interpreter.

Using sys.executable should be the safest option as the test server
will be launched using the same interpreter that the test suite is
running under.
@mrocklin
mrocklin merged commit 993f153 into dask:master Apr 29, 2018
@mrocklin

Copy link
Copy Markdown
Member

Thanks @detrout !

@martindurant

Copy link
Copy Markdown
Member

Aha, makes sense :)

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.

3 participants