Commit 103e58d
committed
fix(tests,engine): guard zarrista tests with importorskip; engine reads return writable arrays
Two fixes from roborev review 371:
- tests/zarrista lacked the importorskip guard its tests/zarrs siblings have,
so any environment without the optional zarrista package failed at pytest
collection (the default test env does not install zarrista). Guarded the
module, and the obstore-dependent fixture/test likewise skip instead of
erroring when obstore is absent. Verified by running the suite with the
zarrista import blocked: clean skips, no collection errors.
- Engine reads copied for parity with the native path: read_region returns a
read-only view over the backend's immutable bytes, which leaked through
arr[...] as an immutable result. Pinned by a writability test.
Assisted-by: ClaudeCode:claude-opus-4.81 parent d7e2e22 commit 103e58d
4 files changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5471 | 5471 | | |
5472 | 5472 | | |
5473 | 5473 | | |
5474 | | - | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
5475 | 5477 | | |
5476 | 5478 | | |
5477 | 5479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
114 | 127 | | |
115 | 128 | | |
116 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
234 | | - | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | | - | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
| |||
0 commit comments