Skip to content

Commit 9ba4a76

Browse files
committed
Fix old build include location test
1 parent 719eaf2 commit 9ba4a76

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/pyarrow/tests/test_cpp_internals.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ def test_pyarrow_include():
4949
# created. Either with PyArrow C++ header files or with
5050
# Arrow C++ and PyArrow C++ header files together
5151

52-
source = os.path.dirname(os.path.abspath(__file__))
53-
pyarrow_dir = pjoin(source, '..')
54-
pyarrow_include = pjoin(pyarrow_dir, 'include')
52+
import pyarrow
53+
pyarrow_include = pyarrow.get_include()
5554
pyarrow_cpp_include = pjoin(pyarrow_include, 'arrow', 'python')
5655

5756
assert os.path.exists(pyarrow_include)

0 commit comments

Comments
 (0)