• Kirill Smelkov's avatar
    bigarray: Fix flaky test in test_bigarray_indexing_1d · 9357bac8
    Kirill Smelkov authored
    We compare A_[10*PS-1] (which is A_[1]) to 0, but
    
        A_= ndarray ((10*PS,), uint8)
    
    and that means the array memory is not initialized. So the comparison
    works sometimes and sometimes it does not.
    
    Initialize compared element explicitly.
    
    NOTE: A (without _) element does not need to be initialized -
    because not-initialized BigArray parts read as zeros.
    9357bac8
Name
Last commit
Last update
..
tests Loading commit data...
__init__.py Loading commit data...
array_zodb.py Loading commit data...