(self)
| 578 | p.read_pid() |
| 579 | |
| 580 | def test_read_pid_raises_ENOENT(self): |
| 581 | exc = IOError() |
| 582 | exc.errno = errno.ENOENT |
| 583 | with conftest.open(side_effect=exc): |
| 584 | p = Pidfile('/var/pid') |
| 585 | assert p.read_pid() is None |
| 586 | |
| 587 | def test_read_pid_raises_IOError(self): |
| 588 | exc = IOError() |