Commit 397cc79
committed
fix: replace pytest.skip with requirement_not_met in conjugateGradientMultiBlockCG example
The example imported pytest inside main() and used pytest.skip() for
requirement checks, which is inappropriate for a standalone script.
All other cuda.bindings examples use requirement_not_met() from
_example_helpers for this purpose.
Replace all pytest.skip() calls with requirement_not_met() and remove
the local pytest import, aligning this example with the established
pattern used across the rest of the examples directory.
Fixes #1530
Relates to #1839
Signed-off-by: Eden <edenfunf@users.noreply.github.com>1 parent 5064470 commit 397cc79
1 file changed
Lines changed: 7 additions & 8 deletions
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
217 | | - | |
218 | 217 | | |
219 | | - | |
| 218 | + | |
220 | 219 | | |
221 | 220 | | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | | - | |
| 224 | + | |
226 | 225 | | |
227 | 226 | | |
228 | | - | |
| 227 | + | |
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
| 234 | + | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
240 | | - | |
| 239 | + | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
| |||
0 commit comments