• 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.
test_basic.py 12.5 KB