#NEWLINE# def test_gh_pr_4806( ) : #NEWLINE# #INDENT# np . random . seed ( 1234 ) #NEWLINE# x = np . random . randn ( 42 ) #NEWLINE# for offset in ( 10000.0 , 1222333444.0 ) : #NEWLINE# #INDENT# ( loc , scale ) = stats . cauchy . fit ( ( x + offset ) ) #NEWLINE# assert_allclose ( loc , offset , atol = 1.0 ) #NEWLINE# assert_allclose ( scale , 0.6 , atol = 1.0 )