<s> import py <EOL> import marshal <EOL> class TestRaises : <EOL> def test_raises ( self ) : <EOL> py . test . raises ( ValueError , "<STR_LIT>" ) <EOL> def test_raises_exec ( self ) : <EOL> py . test . raises ( ValueError , "<STR_LIT>" ) <EOL> def test_raises_syntax_error ( self ) : <EOL> py . test . raises ( SyntaxError , "<STR_LIT>" ) <EOL> def test_raises_function ( self ) : <EOL> py . test . raises ( ValueError , int , '<STR_LIT:hello>' ) <EOL> def test_importorskip ( ) : <EOL> from py . __ . test . outcome import Skipped <EOL> try : <EOL> sys = py . test . importorskip ( "<STR_LIT>" ) <EOL> assert sys == py . std . sys <EOL> py . test . raises ( Skipped , "<STR_LIT>" ) <EOL> py . test . raises ( SyntaxError , "<STR_LIT>" ) <EOL> py . test . raises ( SyntaxError , "<STR_LIT>" ) <EOL> path = py . test . importorskip ( "<STR_LIT>" , minversion = "<STR_LIT:.>" . join ( py . __version__ ) ) <EOL> mod = py . std . new . module ( "<STR_LIT>" ) <EOL> mod . __version__ = "<STR_LIT>" <EOL> py . test . raises ( Skipped , """<STR_LIT>""" ) <EOL> except Skipped : <EOL> print py . code . ExceptionInfo ( ) <EOL> py . test . fail ( "<STR_LIT>" ) <EOL> def test_pytest_exit ( ) : <EOL> try : <EOL> py . test . exit ( "<STR_LIT:hello>" ) <EOL> except : <EOL> excinfo = py . code . ExceptionInfo ( ) <EOL> assert excinfo . errisinstance ( KeyboardInterrupt ) </s>
