File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -169,15 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
169
169
invgrep -r -E --include ' *.py' ' (unittest(\.| import )mock|mock\.Mock\(\)|mock\.patch)' pandas/tests/
170
170
RET=$(( $RET + $? )) ; echo $MSG " DONE"
171
171
172
- # Check that we use pytest.raises only as a context manager
173
- #
174
- # For any flake8-compliant code, the only way this regex gets
175
- # matched is if there is no "with" statement preceding "pytest.raises"
176
- MSG=' Check for pytest.raises as context manager (a line starting with `pytest.raises` is invalid, needs a `with` to precede it)' ; echo $MSG
177
- MSG=' TODO: This check is currently skipped because so many files fail this. Please enable when all are corrected (xref gh-24332)' ; echo $MSG
178
- # invgrep -R --include '*.py' -E '[[:space:]] pytest.raises' pandas/tests
179
- # RET=$(($RET + $?)) ; echo $MSG "DONE"
180
-
181
172
MSG=' Check for wrong space after code-block directive and before colon (".. code-block ::" instead of ".. code-block::")' ; echo $MSG
182
173
invgrep -R --include=" *.rst" " .. code-block ::" doc/source
183
174
RET=$(( $RET + $? )) ; echo $MSG " DONE"
You can’t perform that action at this time.
0 commit comments