Skip to content

Commit 47033e7

Browse files
committed
switch to pytest
1 parent ed84c53 commit 47033e7

File tree

3 files changed

+86
-88
lines changed

3 files changed

+86
-88
lines changed

ci/travis_script_plasma.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ python_version_tests() {
8181
popd
8282

8383
# Run Plasma tests
84-
pushd $TRAVIS_BUILD_DIR/cpp/src/plasma
85-
python test/test.py
84+
pushd $TRAVIS_BUILD_DIR/python
85+
python -m pytest pyarrow/tests/test_plasma.py
86+
VALGRIND=1 python -m pytest pyarrow/tests/test_plasma.py
8687
popd
8788
}
8889

python/pyarrow/tests/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
from pytest import skip
1919

2020

21-
groups = ['hdfs', 'parquet', 'large_memory']
21+
groups = ['hdfs', 'parquet', 'plasma', 'large_memory']
2222

2323
defaults = {
2424
'hdfs': False,
2525
'parquet': False,
26+
'plasma': False
2627
'large_memory': False
2728
}
2829

@@ -32,6 +33,11 @@
3233
except ImportError:
3334
pass
3435

36+
try:
37+
import pyarrow.plasma as plasma
38+
defaults['plasma'] = True
39+
except ImportError:
40+
pass
3541

3642
def pytest_configure(config):
3743
pass

0 commit comments

Comments
 (0)