Repository navigation
Commit 7effa3c
committed
test(python): check the type of the package-scope Store binding
cbm_scope_lookup_local() returns the frame binding (CBMVarBinding), not
its type, so passing it to pylsp_init_named_type() did not compile
(-Werror=incompatible-pointer-types). Add pylsp_local_type(), which
returns the binding's type field or NULL when the name is unbound, and
assert on that type as the test intended.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 57e04c6 commit 7effa3c
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3132 | 3132 | | |
3133 | 3133 | | |
3134 | 3134 | | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
3135 | 3141 | | |
3136 | 3142 | | |
3137 | 3143 | | |
| |||
3257 | 3263 | | |
3258 | 3264 | | |
3259 | 3265 | | |
3260 | | - | |
| 3266 | + | |
3261 | 3267 | | |
3262 | 3268 | | |
3263 | 3269 | | |
| |||
0 commit comments