@@ -4114,7 +4114,7 @@ def assert_fast_waitpid_error(self, patch_point):
41144114 with self .assertRaises (subprocess .TimeoutExpired ):
41154115 p .wait (timeout = 0.0001 )
41164116 self .assertEqual (p .wait (timeout = support .SHORT_TIMEOUT ), 0 )
4117- assert m .called
4117+ self . assertTrue ( m .called )
41184118
41194119 @unittest .skipIf (not CAN_USE_PIDFD_OPEN , reason = "needs pidfd_open()" )
41204120 def test_wait_pidfd_open_error (self ):
@@ -4140,7 +4140,7 @@ def test_kqueue_control_error(self):
41404140 with self .assertRaises (subprocess .TimeoutExpired ):
41414141 p .wait (timeout = 0.0001 )
41424142 self .assertEqual (p .wait (timeout = support .SHORT_TIMEOUT ), 0 )
4143- assert m .called
4143+ self . assertTrue ( m .called )
41444144
41454145 def assert_wait_race_condition (self , patch_target , real_func ):
41464146 # Call pidfd_open() / kqueue(), then terminate the process.
@@ -4160,7 +4160,7 @@ def wrapper(*args, **kwargs):
41604160
41614161 with mock .patch (patch_target , side_effect = wrapper ) as m :
41624162 status = p .wait (timeout = support .SHORT_TIMEOUT )
4163- assert m .called
4163+ self . assertTrue ( m .called )
41644164 self .assertEqual (status , 0 )
41654165
41664166 @unittest .skipIf (not CAN_USE_PIDFD_OPEN , reason = "needs pidfd_open()" )
0 commit comments