Skip to content

Commit 499d330

Browse files
committed
MAINT: Check for pytest.warns in tests
Per discussion in pandas-devgh-18258, we are prohibiting its use in tests, at least for the time being.
1 parent b6acf5e commit 499d330

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/lint.sh

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ if [ "$LINT" ]; then
8989
if [ $? = "0" ]; then
9090
RET=1
9191
fi
92+
93+
# Check for pytest.warns
94+
grep -r -E --include '*.py' 'pytest\.warns' pandas/tests/
95+
96+
if [ $? = "0" ]; then
97+
RET=1
98+
fi
99+
92100
echo "Check for invalid testing DONE"
93101

94102
# Check for imports from pandas.core.common instead

0 commit comments

Comments
 (0)