@@ -737,19 +737,19 @@ def setUp(self):
737737
738738 with mock .patch ('asyncio.proactor_events.socket.socketpair' ,
739739 return_value = (self .ssock , self .csock )):
740- self .loop = BaseProactorEventLoop (self .proactor )
740+ with mock .patch ('signal.set_wakeup_fd' ):
741+ self .loop = BaseProactorEventLoop (self .proactor )
741742 self .set_event_loop (self .loop )
742743
743- @mock .patch .object (BaseProactorEventLoop , 'call_soon' )
744744 @mock .patch ('asyncio.proactor_events.socket.socketpair' )
745- def test_ctor (self , socketpair , call_soon ):
745+ def test_ctor (self , socketpair ):
746746 ssock , csock = socketpair .return_value = (
747747 mock .Mock (), mock .Mock ())
748- loop = BaseProactorEventLoop (self .proactor )
748+ with mock .patch ('signal.set_wakeup_fd' ):
749+ loop = BaseProactorEventLoop (self .proactor )
749750 self .assertIs (loop ._ssock , ssock )
750751 self .assertIs (loop ._csock , csock )
751752 self .assertEqual (loop ._internal_fds , 1 )
752- call_soon .assert_called_with (loop ._loop_self_reading )
753753 loop .close ()
754754
755755 def test_close_self_pipe (self ):
0 commit comments