Skip to content

Commit

Permalink
MAINT: Check for pytest.warns in tests
Browse files Browse the repository at this point in the history
Per discussion in pandas-devgh-18258, we are
prohibiting its use in tests, at
least for the time being.
  • Loading branch information
gfyoung committed Jan 22, 2018
1 parent b6acf5e commit 499d330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ if [ "$LINT" ]; then
if [ $? = "0" ]; then
RET=1
fi

# Check for pytest.warns
grep -r -E --include '*.py' 'pytest\.warns' pandas/tests/

if [ $? = "0" ]; then
RET=1
fi

echo "Check for invalid testing DONE"

# Check for imports from pandas.core.common instead
Expand Down

0 comments on commit 499d330

Please sign in to comment.