def test_equalize_uint8_approx():
 img_eq0 = exposure.equalize_hist(test_img_int)
 img_eq1 = exposure.equalize_hist(test_img_int, nbins=3)
 np.testing.assert_allclose(img_eq0, img_eq1)

def test_equalize_uint8_approx ( ) : img_eq0 = exposure . equalize_hist ( test_img_int ) img_eq1 = exposure . equalize_hist ( test_img_int , nbins = 3 ) np . testing . assert_allclose ( img_eq0 , img_eq1 )
check integer bins used for uint8 images .