py3 compat filter_length integral test