#NEWLINE# @ raises ( ValueError ) #NEWLINE# def test_normalize_std_no_variance_exception( ) : #NEWLINE# #INDENT# pixels = np . ones ( ( 3 , 120 , 120 ) ) #NEWLINE# pixels [ 0 ] = 0.5 #NEWLINE# pixels [ 1 ] = 0.2345 #NEWLINE# image = MaskedImage ( image ) #NEWLINE# image . normalize_std ( mode = 'per_channel' )