Commit aaee3a3
authored
Fix indentation bug in test_linker.py (#875)
`add_from_numba` and `debuggable_kernel` reference
`test_device_functions_ltoir` which is only defined inside `if
TEST_BIN_DIR:`. When `NUMBA_CUDA_TEST_BIN_DIR` is not set, this causes a
`NameError` at module load time.
This PR:
1. Moves `add_from_numba` and `debuggable_kernel` inside the `if
TEST_BIN_DIR:` block
2. Adds `@unittest.skipUnless(TEST_BIN_DIR, ...)` to
`test_debug_kernel_with_lto` so it is skipped when the env var is unset
-- Leo's bot1 parent 3c7c2f3 commit aaee3a3
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
350 | 348 | | |
351 | 349 | | |
352 | 350 | | |
| 351 | + | |
353 | 352 | | |
354 | 353 | | |
355 | 354 | | |
| |||
0 commit comments