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)
28
28
# get the list of parametrizations. we need to call them separately. the last two lines are removed.
29
29
# note: if there's a syntax error, this will fail with some garbled output
30
30
if [[ " $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)
32
32
else
33
- parametrizations=$( pytest $files --collect-only --quiet " $@ " | head -n -2)
33
+ parametrizations=$( python -m pytest $files --collect-only --quiet " $@ " | head -n -2)
34
34
fi
35
35
parametrizations_arr=($parametrizations )
36
36
37
37
# 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 '
39
39
report=' '
40
40
41
41
for i in " ${! parametrizations_arr[@]} " ; do
Original file line number Diff line number Diff line change 23
23
from pytorch_lightning .utilities .warnings import WarningCache
24
24
25
25
standalone = os .getenv ("PL_RUN_STANDALONE_TESTS" , "0" ) == "1"
26
- if standalone :
26
+ if standalone and __name__ == "__main__" :
27
27
28
28
stderr = StringIO ()
29
29
# recording
You can’t perform that action at this time.
0 commit comments