def testBadMagic2(self):
        # make pyc magic word invalid, causing an ImportError
        badmagic_pyc = bytearray(test_pyc)
        badmagic_pyc[0] ^= 0x04  # flip an arbitrary bit
        files = {TESTMOD + pyc_ext: (NOW, badmagic_pyc)}
        try:
            self.doTest(".py", files, TESTMOD)
        except __HOLE__:
            pass
        else:
            self.fail("expected ImportError; import from bad pyc")
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_zipimport.py/UncompressedZipImportTestCase.testBadMagic2