(self)
| 61 | yield c.wait() |
| 62 | |
| 63 | def test_notify_1(self): |
| 64 | c = locks.Condition() |
| 65 | self.record_done(c.wait(), class="st">"wait1") |
| 66 | self.record_done(c.wait(), class="st">"wait2") |
| 67 | c.notify(1) |
| 68 | self.loop_briefly() |
| 69 | self.history.append(class="st">"notify1") |
| 70 | c.notify(1) |
| 71 | self.loop_briefly() |
| 72 | self.history.append(class="st">"notify2") |
| 73 | self.assertEqual([class="st">"wait1", class="st">"notify1", class="st">"wait2", class="st">"notify2"], self.history) |
| 74 | |
| 75 | def test_notify_n(self): |
| 76 | c = locks.Condition() |
nothing calls this directly
no test coverage detected