Skip to content

Commit

Permalink
Use PYTEST_PYARGS to define module to test
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Jun 19, 2024
1 parent b0617b9 commit 15ca182
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions ci/scripts/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,4 @@ export PYARROW_TEST_PARQUET_ENCRYPTION
export PYARROW_TEST_S3

# Testing PyArrow
if [ -z "${TEST_COMMAND}" ]; then
pytest -r s ${PYTEST_ARGS} --pyargs pyarrow
else
${TEST_COMMAND}
fi
pytest -r s ${PYTEST_ARGS} --pyargs ${PYTEST_PYARGS:-'pyarrow'}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ services:
PARQUET_REQUIRE_ENCRYPTION: # inherit
# In the future we are supposed to run all tests.
# This is only temporary.
TEST_COMMAND: "pytest -r s --pyargs pyarrow.tests.test_array"
PYTEST_PYARGS: "pyarrow.tests.test_array"
HYPOTHESIS_PROFILE: # inherit
PYARROW_TEST_HYPOTHESIS: # inherit
volumes: *conda-volumes
Expand Down
1 change: 1 addition & 0 deletions python/pyarrow/pandas_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,7 @@ def _is_generated_index_name(name):
pattern = r'^__index_level_\d+__$'
return re.match(pattern, name) is not None


def get_pandas_logical_type_map():
global _pandas_logical_type_map

Expand Down

0 comments on commit 15ca182

Please sign in to comment.