-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
/
doctests.sh
executable file
·60 lines (42 loc) · 1.42 KB
/
doctests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
echo "inside $0"
source activate pandas
cd "$TRAVIS_BUILD_DIR"
RET=0
if [ "$DOCTEST" ]; then
echo "Running doctests"
# running all doctests is not yet working
# pytest --doctest-modules --ignore=pandas/tests -v pandas
# if [ $? -ne "0" ]; then
# RET=1
# fi
# DataFrame / Series docstrings
pytest --doctest-modules -v pandas/core/frame.py \
-k"-assign -axes -combine -isin -itertuples -join -nlargest -nsmallest -nunique -pivot_table -quantile -query -reindex -reindex_axis -replace -round -set_index -stack -to_dict -to_stata"
if [ $? -ne "0" ]; then
RET=1
fi
pytest --doctest-modules -v pandas/core/series.py \
-k"-nonzero -reindex -searchsorted -to_dict"
if [ $? -ne "0" ]; then
RET=1
fi
pytest --doctest-modules -v pandas/core/generic.py \
-k"-_set_axis_name -_xs -describe -droplevel -groupby -interpolate -pct_change -pipe -reindex -reindex_axis -resample -sample -to_json -transpose -values -xs"
if [ $? -ne "0" ]; then
RET=1
fi
# top-level reshaping functions
pytest --doctest-modules -v \
pandas/core/reshape/concat.py \
pandas/core/reshape/pivot.py \
pandas/core/reshape/reshape.py \
pandas/core/reshape/tile.py \
-k"-crosstab -pivot_table -cut"
if [ $? -ne "0" ]; then
RET=1
fi
else
echo "NOT running doctests"
fi
exit $RET