Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2047

[Python] test_serialization.py uses a python executable in PATH rather than that used for a test run

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: Python
    • Environment:
      Irrelevant.
    • Flags:
      Patch

      Description

       

      Because of it, it needs a valid search path setup everytime the test is run. 

      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():
      

      I am going to create a PR accordingly.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                moriyoshi Moriyoshi Koizumi
                Reporter:
                moriyoshi Moriyoshi Koizumi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: