<s> import py <EOL> import sys <EOL> class Directory ( py . test . collect . Directory ) : <EOL> def collect ( self ) : <EOL> if '<STR_LIT>' not in sys . builtin_module_names : <EOL> py . test . skip ( "<STR_LIT>" ) <EOL> return super ( Directory , self ) . collect ( ) <EOL> def compile_so_file ( ) : <EOL> from pypy . translator . platform import platform <EOL> from pypy . translator . tool . cbuild import ExternalCompilationInfo <EOL> udir = py . test . ensuretemp ( '<STR_LIT>' ) <EOL> cfile = py . magic . autopath ( ) . dirpath ( ) . join ( "<STR_LIT>" ) <EOL> if sys . platform == '<STR_LIT:win32>' : <EOL> libraries = [ '<STR_LIT>' ] <EOL> else : <EOL> libraries = [ ] <EOL> eci = ExternalCompilationInfo ( libraries = libraries ) <EOL> return platform . compile ( [ cfile ] , eci , str ( udir . join ( '<STR_LIT>' ) ) , <EOL> standalone = False ) <EOL> def pytest_configure ( config ) : <EOL> global sofile <EOL> sofile = compile_so_file ( ) </s>
