Skip to content

Commit a092e91

Browse files
datapythonistagfyoung
authored andcommitted
CI: Check in the CI that assert_raises_regex is not being used (pandas-dev#23627)
Follow-up to pandas-devgh-23592.
1 parent 8a7ecee commit a092e91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/code_checks.sh

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
122122
! grep -R --include="*.py" --include="*.pyx" --include="*.rst" -E "\.\. (autosummary|contents|currentmodule|deprecated|function|image|important|include|ipython|literalinclude|math|module|note|raw|seealso|toctree|versionadded|versionchanged|warning):[^:]" ./pandas ./doc/source
123123
RET=$(($RET + $?)) ; echo $MSG "DONE"
124124

125+
MSG='Check that the deprecated `assert_raises_regex` is not used (`pytest.raises(match=pattern)` should be used instead)' ; echo $MSG
126+
! grep -R --exclude=*.pyc --exclude=testing.py --exclude=test_testing.py assert_raises_regex pandas
127+
RET=$(($RET + $?)) ; echo $MSG "DONE"
128+
125129
MSG='Check for modules that pandas should not import' ; echo $MSG
126130
python -c "
127131
import sys

0 commit comments

Comments
 (0)