<s> from pypy . toolautopath import libpythondir <EOL> import py <EOL> from pypy . interpreter . astcompiler . test . test_compiler import compile_with_astcompiler <EOL> class TestStdlib : <EOL> def check_file_compile ( self , filepath ) : <EOL> space = self . space <EOL> print '<STR_LIT>' , filepath <EOL> source = filepath . read ( ) <EOL> compile_with_astcompiler ( source , mode = '<STR_LIT>' , space = space ) <EOL> def test_all ( self ) : <EOL> p = py . path . local ( libpythondir ) <EOL> files = p . listdir ( "<STR_LIT>" ) <EOL> files . sort ( ) <EOL> for s in files : <EOL> yield self . check_file_compile , s </s>
