Home | History | Annotate | Download | only in test

Lines Matching refs:pyc

36     pyc = imp.get_magic() + struct.pack("<i", int(mtime)) + data
37 return pyc
47 pyc_ext = ".pyc"
157 # make pyc magic word invalid, forcing loading from .py
166 # make pyc magic word invalid, causing an ImportError
176 self.fail("expected ImportError; import from bad pyc")
306 pyc = make_pyc(compile(src, "<???>", "exec"), NOW)
307 files = {TESTMOD + pyc_ext: (NOW, pyc),
326 pyc = make_pyc(compile(test_src, "<???>", "exec"), NOW)
328 TESTMOD + pyc_ext: (NOW, pyc)}