mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Fixed test for asyncore.
This commit is contained in:
parent
b65b4c3a47
commit
873c3864ba
1 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ class exitingdummy:
|
|||
raise asyncore.ExitNow()
|
||||
|
||||
handle_write_event = handle_read_event
|
||||
handle_close_event = handle_read_event
|
||||
handle_close = handle_read_event
|
||||
handle_expt_event = handle_read_event
|
||||
|
||||
class crashingdummy:
|
||||
|
|
@ -49,7 +49,7 @@ class crashingdummy:
|
|||
raise Exception()
|
||||
|
||||
handle_write_event = handle_read_event
|
||||
handle_close_event = handle_read_event
|
||||
handle_close = handle_read_event
|
||||
handle_expt_event = handle_read_event
|
||||
|
||||
def handle_error(self):
|
||||
|
|
@ -128,7 +128,7 @@ class HelperFunctionTests(unittest.TestCase):
|
|||
def handle_write_event(self):
|
||||
self.write = True
|
||||
|
||||
def handle_close_event(self):
|
||||
def handle_close(self):
|
||||
self.closed = True
|
||||
|
||||
def handle_expt_event(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue