#NEWLINE# def test_misencodedFileUTF16( self ) : #NEWLINE# #INDENT# '\n        If a source file contains bytes which cannot be decoded, this is\n        reported on stderr.\n        ' #NEWLINE# SNOWMAN = unichr ( 9731 ) #NEWLINE# source = ( '# coding: ascii\nx = "%s"\n' % SNOWMAN ) . encode ( 'utf-16' ) #NEWLINE# sourcePath = self . makeTempFile ( source ) #NEWLINE# self . assertHasErrors ( source , [ ( '%s: problem decoding source\n' % ( sourcePath , ) ) ] )