MCPcopy
hub / github.com/celery/celery / test_read_pid_raises_IOError

Method test_read_pid_raises_IOError

t/unit/utils/test_platforms.py:587–593  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 4

read_pidMethod · 0.95
PidfileClass · 0.90
openMethod · 0.45
raisesMethod · 0.45

Tested by

no test coverage detected