File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ files=$(echo "$grep_output" | cut -f1 -d: | sort | uniq)
2828# get the list of parametrizations. we need to call them separately. the last two lines are removed.
2929# note: if there's a syntax error, this will fail with some garbled output
3030if [[ " $OSTYPE " == " darwin" * ]]; then
31- parametrizations=$( pytest $files --collect-only --quiet " $@ " | tail -r | sed -e ' 1,3d' | tail -r)
31+ parametrizations=$( python -m pytest $files --collect-only --quiet " $@ " | tail -r | sed -e ' 1,3d' | tail -r)
3232else
33- parametrizations=$( pytest $files --collect-only --quiet " $@ " | head -n -2)
33+ parametrizations=$( python -m pytest $files --collect-only --quiet " $@ " | head -n -2)
3434fi
3535parametrizations_arr=($parametrizations )
3636
3737# tests to skip - space separated
38- blocklist=' tests/profiler/test_profiler.py::test_pytorch_profiler_nested_emit_nvtx'
38+ blocklist=' tests/profiler/test_profiler.py::test_pytorch_profiler_nested_emit_nvtx tests/utilities/test_warnings.py '
3939report=' '
4040
4141for i in " ${! parametrizations_arr[@]} " ; do
Original file line number Diff line number Diff line change 2323from pytorch_lightning .utilities .warnings import WarningCache
2424
2525standalone = os .getenv ("PL_RUN_STANDALONE_TESTS" , "0" ) == "1"
26- if standalone :
26+ if standalone and __name__ == "__main__" :
2727
2828 stderr = StringIO ()
2929 # recording
You can’t perform that action at this time.
0 commit comments