[
https://issues.apache.org/jira/browse/ARROW-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16345345#comment-16345345
]
ASF GitHub Bot commented on ARROW-2047:
---------------------------------------
wesm closed pull request #1525: ARROW-2047: [Python] Use sys.executable instead
of one in the search path.
URL: https://github.com/apache/arrow/pull/1525
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/python/pyarrow/tests/test_serialization.py
b/python/pyarrow/tests/test_serialization.py
index e4681e3a5..9cad81fc9 100644
--- a/python/pyarrow/tests/test_serialization.py
+++ b/python/pyarrow/tests/test_serialization.py
@@ -554,7 +554,7 @@ def test_deserialize_buffer_in_different_process():
dir_path = os.path.dirname(os.path.realpath(__file__))
python_file = os.path.join(dir_path, 'deserialize_buffer.py')
- subprocess.check_call(['python', python_file, f.name])
+ subprocess.check_call([sys.executable, python_file, f.name])
def test_set_pickle():
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> test_serialization.py uses a python executable in PATH rather than that used
> for a test run
> -------------------------------------------------------------------------------------------
>
> Key: ARROW-2047
> URL: https://issues.apache.org/jira/browse/ARROW-2047
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.8.0
> Environment: Irrelevant.
> Reporter: Moriyoshi Koizumi
> Priority: Minor
> Labels: pull-request-available
> Fix For: 0.9.0
>
>
>
> Because of it, it needs a valid search path setup everytime the test is run.
> {code:java}
> diff --git a/python/pyarrow/tests/test_serialization.py
> b/python/pyarrow/tests/test_serialization.py
> index e4681e3a..9cad81fc 100644
> — a/python/pyarrow/tests/test_serialization.py
> +++ b/python/pyarrow/tests/test_serialization.py
> @@ -554,7 +554,7 @@ def test_deserialize_buffer_in_different_process():
> dir_path = os.path.dirname(os.path.realpath(_file_))
> python_file = os.path.join(dir_path, 'deserialize_buffer.py')
> subprocess.check_call(['python', python_file, f.name])
> + subprocess.check_call([sys.executable, python_file, f.name])
> def test_set_pickle():
> {code}
> I am going to create a PR accordingly.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)