For testing purposes I want my code to raise a socket "connection reset by peer" error, so that I can test how I handle it, but I am not sure how to raise the error.
Any advice appreciated -- http://mail.python.org/mailman/listinfo/python-list
For testing purposes I want my code to raise a socket "connection reset by peer" error, so that I can test how I handle it, but I am not sure how to raise the error.
Any advice appreciated -- http://mail.python.org/mailman/listinfo/python-list