def test_misencodedFileUTF16(self):
        SNOWMAN = unichr(0x2603)
        source = ("""\
# coding: ascii
x = "%s"
""" % SNOWMAN).encode('utf-16')
        sourcePath = self.makeTempFile(source)
        self.assertHasErrors(
            sourcePath, ["%s: problem decoding source\n" % (sourcePath,)])
If a source file contains bytes which cannot be decoded, this is
dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_api.py/CheckTests.test_misencodedFileUTF16