diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-05-06 20:21:57 +0000 |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2010-05-06 20:21:57 +0000 |
commit | d930b63583a8dc1ece9407652636209a3d396149 (patch) | |
tree | 693307910ba3526bd15ccea40cbd08f1f6e76f9b /Lib/test/test_ftplib.py | |
parent | d61e397b12aab80889e2b0981a0cb27dac0acc86 (diff) | |
download | cpython-git-d930b63583a8dc1ece9407652636209a3d396149.tar.gz |
Merged revisions 80882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80882 | giampaolo.rodola | 2010-05-06 22:19:32 +0200 (gio, 06 mag 2010) | 1 line
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 4e80daee9a..b949b695eb 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -50,6 +50,9 @@ class DummyDTPHandler(asynchat.async_chat): def push(self, what): super(DummyDTPHandler, self).push(what.encode('ascii')) + def handle_error(self): + raise + class DummyFTPHandler(asynchat.async_chat): |