mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong
This commit is contained in:
parent
215b6b392d
commit
e4499a88c2
2 changed files with 9 additions and 0 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue