Commit 0945189
committed
test(losses): use self.skipTest instead of bare return for CUDA skip
Bare `return` in unittest does not signal a skip — pytest emits a
warning ("Did you mean to use assert instead of return?"). Replace
with `self.skipTest("CUDA not available")` which correctly marks the
test as skipped and is consistent with MONAI conventions.
Signed-off-by: Oleksandr Sanin <alexaaander.sanin@gmail.com>1 parent 4ad65e4 commit 0945189
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments