Skip to content

Commit

Permalink
ARROW-7915: [CI][Python] Enable development mode in tests
Browse files Browse the repository at this point in the history
Python's "development mode" enables some runtime checks and warnings
that help developers spot errors in their code (such as resource leaks).

Closes #6473 from pitrou/ARROW-7915-py-dev-mode and squashes the following commits:

1c2b91d <Antoine Pitrou> Enable Python dev mode also on AppVeyor
e436396 <Antoine Pitrou> ARROW-7915:   Enable development mode in tests

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
  • Loading branch information
pitrou authored and kszucs committed Feb 24, 2020
1 parent 4f75659 commit c7c2e03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/cpp-msvc-build-main.bat
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ set PARQUET_HOME=%CONDA_PREFIX%\Library

python setup.py develop -q || exit /B

set PYTHONDEVMODE=1

py.test -r sxX --durations=15 --pyargs pyarrow.tests || exit /B

@rem
Expand Down
3 changes: 3 additions & 0 deletions ci/scripts/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ export ARROW_TEST_DATA=${arrow_dir}/testing/data
export PARQUET_TEST_DATA=${arrow_dir}/cpp/submodules/parquet-testing/data
export LD_LIBRARY_PATH=${ARROW_HOME}/lib:${LD_LIBRARY_PATH}

# Enable some checks inside Python itself
export PYTHONDEVMODE=1

pytest -r s --pyargs pyarrow

0 comments on commit c7c2e03

Please sign in to comment.