<s> import sys <EOL> from pypy . translator . cli . test . runtest import CliTest <EOL> from pypy . translator . oosupport . test_template . operations import BaseTestOperations <EOL> from pypy . rlib . rarithmetic import ovfcheck <EOL> class TestOperations ( CliTest , BaseTestOperations ) : <EOL> def test_int_div_overflow ( self ) : <EOL> import py <EOL> py . test . skip ( '<STR_LIT>' ) <EOL> def fn ( x , y ) : <EOL> try : <EOL> return x // y <EOL> except OverflowError : <EOL> return <NUM_LIT> <EOL> res = self . interpret ( fn , [ - sys . maxint - <NUM_LIT:1> , - <NUM_LIT:1> ] ) <EOL> assert res == <NUM_LIT> </s>
