(self)
| 585 | assert p.read_pid() is None |
| 586 | |
| 587 | def test_read_pid_raises_IOError(self): |
| 588 | exc = IOError() |
| 589 | exc.errno = errno.EAGAIN |
| 590 | with conftest.open(side_effect=exc): |
| 591 | p = Pidfile('/var/pid') |
| 592 | with pytest.raises(IOError): |
| 593 | p.read_pid() |
| 594 | |
| 595 | def test_read_pid_bogus_pidfile(self): |
| 596 | with conftest.open() as s: |