def testUnregisterRaisesKeyError(self):
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        poll_object = select.poll()
        try:
            poll_object.unregister(s)
        except __HOLE__:
            pass
        else:
            self.fail("Unregistering socket that is not registered should have raised KeyError")

#
# using the test_socket thread based server/client management, for convenience.
#
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_select.py/TestPollClientSocket.testUnregisterRaisesKeyError