File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 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
169169 invgrep -r -E --include ' *.py' ' (unittest(\.| import )mock|mock\.Mock\(\)|mock\.patch)' pandas/tests/
170170 RET=$(( $RET + $? )) ; echo $MSG " DONE"
171171
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-
181172 MSG=' Check for wrong space after code-block directive and before colon (".. code-block ::" instead of ".. code-block::")' ; echo $MSG
182173 invgrep -R --include=" *.rst" " .. code-block ::" doc/source
183174 RET=$(( $RET + $? )) ; echo $MSG " DONE"
You can’t perform that action at this time.
0 commit comments