diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-05-06 20:19:32 +0000 |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-05-06 20:19:32 +0000 |
commit | e4499a88c2551400b94bda3ada0037a824c45402 (patch) | |
tree | 309b0f48a50aad612bac0e09ab367b5c198f0bb5 /Lib/test/test_ftplib.py | |
parent | 215b6b392d8530dee3e33caf12249dadfe71c07f (diff) | |
download | cpython-git-e4499a88c2551400b94bda3ada0037a824c45402.tar.gz |
adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong
Diffstat (limited to 'Lib/test/test_ftplib.py')
-rw-r--r-- | Lib/test/test_ftplib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 3a2ec5e84b..7a0945f859 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -48,6 +48,9 @@ class DummyDTPHandler(asynchat.async_chat): self.close() self.dtp_conn_closed = True + def handle_error(self): + raise + class DummyFTPHandler(asynchat.async_chat): |