def __test(order, alpha): np.random.seed(98765) dummy_input = np.random.rand(64) delay = np.zeros(order + 1) for x in dummy_input: pysptk.phidf(x, order, alpha, delay) assert np.all(np.isfinite(delay))