On 2013.05.21 10:26, loial wrote:
> 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.
Arbitrary exceptions can be raised with the raise keyword. In Python 3.3, that
exact error
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