test_swigCArray
- class test_swigCArray.ConversionFailure[source]
Bases:
objectRaise from conversions that support Python numeric protocols.
- class test_swigCArray.ResizingList(values, grow)[source]
Bases:
listChange length on the first item access to exercise cached bounds.
- class test_swigCArray.SequenceFailure(operation)[source]
Bases:
objectRaise while obtaining a sequence length or one of its items.
- test_swigCArray.test_array1_conversion_failure(field)[source]
Numeric conversion errors preserve the destination and release items.
- test_swigCArray.test_array1_invalid_elements(field, value, error)[source]
Overflow and invalid pointer elements cannot partially update arrays.
- test_swigCArray.test_array1_invalid_pointer_reference()[source]
Invalid pointer elements cannot modify arrays or leak references.
- test_swigCArray.test_array1_pointer_proxy()[source]
Valid numeric pointer proxies work; null proxies are rejected.
- test_swigCArray.test_array1_resizing_sequence(grow, struct_array)[source]
Sequence resizing cannot bypass bounds or copy partial data.
- test_swigCArray.test_array1_scalar_types(field)[source]
Supported scalar arrays preserve full inputs and zero-pad short ones.
- test_swigCArray.test_array1_sequence_failure(values, error)[source]
Sequence validation and access errors leave the destination intact.
- test_swigCArray.test_array1_sequences(container)[source]
Lists, tuples and NumPy arrays remain valid inputs.
- test_swigCArray.test_array2_builtin_conversion_errors(field, value, error)[source]
Built-in conversion failures leave existing values intact.
- test_swigCArray.test_array2_conversion_failure(field)[source]
Conversion errors propagate without mutation or leaked references.
- test_swigCArray.test_array2_invalid_shapes(matrix)[source]
Malformed and oversized matrices raise without modifying the payload.
- test_swigCArray.test_array2_module_members_and_arguments()[source]
Check module members and rectangular function arguments too.
- test_swigCArray.test_array2_negative_one(field)[source]
A valid converter result of minus one is not mistaken for an error.
- test_swigCArray.test_array2_scalar_types(field)[source]
All supported payload scalar types accept full and partial matrices.
- test_swigCArray.test_array2_sequence_failure(operation, error, as_row)[source]
Sequence protocol failures propagate and release acquired references.