<s> import unittest <EOL> import glob <EOL> import os . path <EOL> import test . support <EOL> from test . script_helper import assert_python_failure <EOL> CRASHER_DIR = os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) <EOL> CRASHER_FILES = os . path . join ( CRASHER_DIR , "<STR_LIT>" ) <EOL> infinite_loops = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> class CrasherTest ( unittest . TestCase ) : <EOL> @ unittest . skip ( "<STR_LIT>" ) <EOL> @ test . support . cpython_only <EOL> def test_crashers_crash ( self ) : <EOL> for fname in glob . glob ( CRASHER_FILES ) : <EOL> if os . path . basename ( fname ) in infinite_loops : <EOL> continue <EOL> if test . support . verbose : <EOL> print ( "<STR_LIT>" , fname ) <EOL> assert_python_failure ( fname ) <EOL> def test_main ( ) : <EOL> test . support . run_unittest ( CrasherTest ) <EOL> test . support . reap_children ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test_main ( ) </s>
