def test_genextreme_give_no_warnings():
 with warnings.catch_warnings(record=True) as w:
  warnings.simplefilter('always')
  p = stats.genextreme.cdf(0.5, 0)
  p = stats.genextreme.pdf(0.5, 0)
  p = stats.genextreme.ppf(0.5, 0)
  p = stats.genextreme.logpdf((- np.inf), 0.0)
  number_of_warnings_thrown = len(w)
  assert_equal(number_of_warnings_thrown, 0)

def test_genextreme_give_no_warnings ( ) : with warnings . catch_warnings ( record = True ) as w : warnings . simplefilter ( 'always' ) p = stats . genextreme . cdf ( 0.5 , 0 ) p = stats . genextreme . pdf ( 0.5 , 0 ) p = stats . genextreme . ppf ( 0.5 , 0 ) p = stats . genextreme . logpdf ( ( - np . inf ) , 0.0 ) number_of_warnings_thrown = len ( w ) assert_equal ( number_of_warnings_thrown , 0 )
regression test for gh-6219 .