(self, cond)
| 1602 | self.assertReturnsIfImplemented(value, func) |
| 1603 | |
| 1604 | def check_invariant(self, cond): |
| 1605 | # this is only supposed to succeed when there are no sleepers |
| 1606 | if self.TYPE == 'processes': |
| 1607 | try: |
| 1608 | sleepers = (cond._sleeping_count.get_value() - |
| 1609 | cond._woken_count.get_value()) |
| 1610 | self.assertEqual(sleepers, 0) |
| 1611 | self.assertEqual(cond._wait_semaphore.get_value(), 0) |
| 1612 | except NotImplementedError: |
| 1613 | pass |
| 1614 | |
| 1615 | def test_notify(self): |
| 1616 | cond = self.Condition() |
no test coverage detected