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