#NEWLINE# def test_nanvar_axis( self ) : #NEWLINE# #INDENT# samples_norm = self . samples #NEWLINE# samples_unif = self . prng . uniform ( size = samples_norm . shape [ 0 ] ) #NEWLINE# samples = np . vstack ( [ actual_variance , samples_unif ] ) #NEWLINE# actual_variance = nanops . nanvar ( samples , axis = 1 ) #NEWLINE# np . testing . assert_array_almost_equal ( actual_variance , np . array ( [ self . variance , ( 1.0 / 12 ) ] ) , decimal = 2 )