#NEWLINE# def test_timeout_overflow( self ) : #NEWLINE# #INDENT# pollster = select . devpoll ( ) #NEWLINE# ( w , r ) = os . pipe ( ) #NEWLINE# pollster . register ( w ) #NEWLINE# pollster . poll ( ( - 1 ) ) #NEWLINE# self . assertRaises ( OverflowError , pollster . poll , ( - 2 ) ) #NEWLINE# self . assertRaises ( OverflowError , pollster . poll , ( ( - 1 ) << 31 ) ) #NEWLINE# self . assertRaises ( OverflowError , pollster . poll , ( ( - 1 ) << 64 ) ) #NEWLINE# pollster . poll ( 0 ) #NEWLINE# pollster . poll ( 1 ) #NEWLINE# pollster . poll ( ( 1 << 30 ) ) #NEWLINE# self . assertRaises ( OverflowError , pollster . poll , ( 1 << 31 ) ) #NEWLINE# self . assertRaises ( OverflowError , w . poll , ( 1 << 63 ) ) #NEWLINE# self . assertRaises ( OverflowError , pollster . poll , ( 1 << 64 ) )