Skip to content

Commit ab382d0

Browse files
committed
increased test coverage
1 parent e25ab6a commit ab382d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_threading.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ def test_init_immutable_default_args(self):
10881088
def _callback_spy(self, *args, **kwargs):
10891089
self.callback_args.append((args[:], kwargs.copy()))
10901090
self.callback_event.set()
1091+
self.assertEqual(self.callback_event.is_set(), True)
10911092

10921093
def test_continuous_execution(self):
10931094
timer1 = threading.Timer(0.01, self._callback_cont)
@@ -1108,6 +1109,7 @@ def test_continuous_execution(self):
11081109
def _callback_cont(self):
11091110
self.callback_cnt -= 1
11101111
self.callback_event.set()
1112+
self.assertEqual(self.callback_event.is_set(), True)
11111113
return self.callback_cnt > 0
11121114

11131115
class LockTests(lock_tests.LockTests):

0 commit comments

Comments
 (0)