Commit 3e0a7a9
Enable test_mutable_ref_output_is_view and add .base verification
Enabled the previously skipped test for mutable reference returns. The implementation already supports this case using PyArray_SimpleNewFromData with explicit .base setting to keep the owner alive.
Added verification that:
- .base is the owner object (not None)
- Array is writable
- Modifications to the array affect the C++ data (true zero-copy view)
This test verifies that non-const reference returns create writable views with proper lifetime management.
Addresses comment 3679483484
Co-authored-by: jpfeuffer <8102638+jpfeuffer@users.noreply.github.com>1 parent 67ab2fa commit 3e0a7a9
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
0 commit comments