<s> import os <EOL> import imp <EOL> import tempfile <EOL> from hy . importer import write_hy_as_pyc <EOL> def test_pyc ( ) : <EOL> """<STR_LIT>""" <EOL> f = tempfile . NamedTemporaryFile ( suffix = '<STR_LIT>' , delete = False ) <EOL> f . write ( b'<STR_LIT>' ) <EOL> f . close ( ) <EOL> write_hy_as_pyc ( f . name ) <EOL> os . unlink ( f . name ) <EOL> cfile = "<STR_LIT>" % f . name [ : - len ( "<STR_LIT>" ) ] <EOL> mod = imp . load_compiled ( '<STR_LIT>' , cfile ) <EOL> os . unlink ( cfile ) <EOL> assert mod . pyctest ( '<STR_LIT>' ) == '<STR_LIT>' </s>
