def test_tukeylambda_stats_invalid():
 lam = [(-1.0), (-0.5)]
 var = tukeylambda_variance(lam)
 assert_equal(var, np.array([np.nan, np.inf]))
 lam = [(-1.0), (-0.25)]
 kurt = tukeylambda_kurtosis(lam)
 assert_equal(kurt, np.array([np.nan, np.inf]))

def test_tukeylambda_stats_invalid ( ) : lam = [ ( - 1.0 ) , ( - 0.5 ) ] var = tukeylambda_variance ( lam ) assert_equal ( var , np . array ( [ np . nan , np . inf ] ) ) lam = [ ( - 1.0 ) , ( - 0.25 ) ] kurt = tukeylambda_kurtosis ( lam ) assert_equal ( kurt , np . array ( [ np . nan , np . inf ] ) )
test values of lambda outside the domains of the functions .