Commit a95dc9e
committed
fix: update test_read_only_kernel_attributes for property API (#1945)
The parametrized test in test_module.py exercised the previous
KernelAttributes(method, optional device_id) shape via getattr() +
call. Rewrite it to use property access on the default view and on
the per-device views returned by kernel.attributes[device], for both
Device-object and ordinal-int forms. Type-check the value at every
access path rather than just the last one.
Made-with: Cursor1 parent a42739f commit a95dc9e
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | | - | |
| 216 | + | |
216 | 217 | | |
217 | | - | |
218 | | - | |
219 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
0 commit comments